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: application custom labels reset after saving

Alexzvnaf38d0cc078d
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.php
index 60cdee48e6..06ff7b1dea 100644
--- a/app/Livewire/Project/Application/General.php
+++ b/app/Livewire/Project/Application/General.php
@@ -347,7 +347,9 @@ class General extends Component
public function submit($showToaster = true)
{
try {
- $this->set_redirect();
+ if ($this->application->isDirty('redirect')) {
+ $this->set_redirect();
+ }
$this->application->fqdn = str($this->application->fqdn)->replaceEnd(',', '')->trim();
$this->application->fqdn = str($this->application->fqdn)->replaceStart(',', '')->trim();
$this->application->fqdn = str($this->application->fqdn)->trim()->explode(',')->map(function ($domain) {