diff --git a/src/Extension/FluentExtension.php b/src/Extension/FluentExtension.php index 6980ee57..3edd2ced 100644 --- a/src/Extension/FluentExtension.php +++ b/src/Extension/FluentExtension.php @@ -1160,8 +1160,11 @@ public function updateFluentCMSField(FormField $field) public function updatePreviewLink(&$link): void { $owner = $this->owner; - $info = $owner->LocaleInformation(FluentState::singleton()->getLocale()); - + $locale = FluentState::singleton()->getLocale(); + if ($locale === null || $locale === '') { + return; + } + $info = $owner->LocaleInformation($locale); if (!$info->getSourceLocale()) { $link = null; }