fix: graceful shutdown

This commit is contained in:
Andras Bacsai
2024-08-06 13:05:34 +02:00
parent f4d64e121c
commit a4f107e191
2 changed files with 22 additions and 20 deletions

View File

@@ -91,7 +91,7 @@ class Advanced extends Component
public function saveCustomName()
{
if (isset($this->application->settings->custom_internal_name)) {
if (str($this->application->settings->custom_internal_name)->isNotEmpty()) {
$this->application->settings->custom_internal_name = str($this->application->settings->custom_internal_name)->slug()->value();
} else {
$this->application->settings->custom_internal_name = null;