diff --git a/src/TranslatableFieldMixin.php b/src/TranslatableFieldMixin.php index 4422615..7c0b8fc 100644 --- a/src/TranslatableFieldMixin.php +++ b/src/TranslatableFieldMixin.php @@ -76,7 +76,7 @@ public function translatable() : config('nova-translatable.fill_other_locales_from', null); // Fix strings being casted to floats - if ($this instanceof Text && !$this instanceof Number) { + if ($this instanceof Text && !$this instanceof Number && !empty($value)) { foreach ($value as $key => $val) { $value[$key] = ($val === null ? null : (string) $val); }