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.

Update app/Livewire/Project/Application/General.php

Andras Bacsaia45e674c3922
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.php
index fb306e0921..a83e6f70ad 100644
--- a/app/Livewire/Project/Application/General.php
+++ b/app/Livewire/Project/Application/General.php
@@ -401,7 +401,9 @@ class General extends Component
$this->application->docker_compose_raw = $this->dockerComposeRaw;
$this->application->docker_compose_custom_start_command = $this->dockerComposeCustomStartCommand;
$this->application->docker_compose_custom_build_command = $this->dockerComposeCustomBuildCommand;
- $this->application->custom_labels = base64_encode($this->customLabels);
+ $this->application->custom_labels = is_null($this->customLabels)
+ ? null
+ : base64_encode($this->customLabels);
$this->application->custom_docker_run_options = $this->customDockerRunOptions;
$this->application->pre_deployment_command = $this->preDeploymentCommand;
$this->application->pre_deployment_command_container = $this->preDeploymentCommandContainer;