diff --git a/app/Models/Server.php b/app/Models/Server.php index 1b1bcae..27b8b0a 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -141,7 +141,7 @@ class Server extends Model private function castValueWithConfig($value, array $config) { - if ($value === null) { + if ($value === null && $config['type'] !== 'object') { return $config['default'] ?? null; }