Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: update syncData method to use data_get for safer property access

Andras Bacsai26bbf94d6628
diff --git a/app/Livewire/Project/Service/ServiceApplicationView.php b/app/Livewire/Project/Service/ServiceApplicationView.php
index 2a661c4cf4..09392ab090 100644
--- a/app/Livewire/Project/Service/ServiceApplicationView.php
+++ b/app/Livewire/Project/Service/ServiceApplicationView.php
@@ -157,10 +157,10 @@ class ServiceApplicationView extends Component
$this->description = $this->application->description;
$this->fqdn = $this->application->fqdn;
$this->image = $this->application->image;
- $this->excludeFromStatus = $this->application->exclude_from_status;
- $this->isLogDrainEnabled = $this->application->is_log_drain_enabled;
- $this->isGzipEnabled = $this->application->is_gzip_enabled;
- $this->isStripprefixEnabled = $this->application->is_stripprefix_enabled;
+ $this->excludeFromStatus = data_get($this->application, 'exclude_from_status', false);
+ $this->isLogDrainEnabled = data_get($this->application, 'is_log_drain_enabled', false);
+ $this->isGzipEnabled = data_get($this->application, 'is_gzip_enabled', true);
+ $this->isStripprefixEnabled = data_get($this->application, 'is_stripprefix_enabled', true);
}
}