diff --git a/app/Importers/MgImporterTrait.php b/app/Importers/MgImporterTrait.php index 587f942e6..7fae50b57 100644 --- a/app/Importers/MgImporterTrait.php +++ b/app/Importers/MgImporterTrait.php @@ -20,7 +20,7 @@ protected function init(): void }; $this->sanitizers[] = function ($value) { - return empty_to_null($value); + return empty_to_null(trim($value)); }; $this->mediumTranslationKeys = array_flip(trans('item.media', locale: 'cs'));