diff --git a/app/Livewire/Server/Proxy/DynamicConfigurations.php b/app/Livewire/Server/Proxy/DynamicConfigurations.php index 6277a24bd..7db890638 100644 --- a/app/Livewire/Server/Proxy/DynamicConfigurations.php +++ b/app/Livewire/Server/Proxy/DynamicConfigurations.php @@ -38,7 +38,8 @@ class DynamicConfigurations extends Component $contents = collect([]); foreach ($files as $file) { $without_extension = str_replace('.', '|', $file); - $contents[$without_extension] = instant_remote_process(["cat {$proxy_path}/dynamic/{$file}"], $this->server); + $content = instant_remote_process(["cat {$proxy_path}/dynamic/{$file}"], $this->server); + $contents[$without_extension] = $content ?? ''; } $this->contents = $contents; $this->dispatch('$refresh'); diff --git a/resources/views/livewire/server/proxy/dynamic-configurations.blade.php b/resources/views/livewire/server/proxy/dynamic-configurations.blade.php index 30400ef73..1dddbe433 100644 --- a/resources/views/livewire/server/proxy/dynamic-configurations.blade.php +++ b/resources/views/livewire/server/proxy/dynamic-configurations.blade.php @@ -38,7 +38,7 @@ wire:model="contents.{{ $fileName }}" rows="5" /> @else