fix: add config_hash if its null (old deployments)

This commit is contained in:
Andras Bacsai
2023-10-18 11:26:01 +02:00
parent b101fbacd4
commit 7678cd47df
2 changed files with 4 additions and 1 deletions

View File

@@ -80,6 +80,9 @@ class General extends Component
public function mount()
{
if (str($this->application->status)->startsWith('running') && is_null($this->application->config_hash)) {
$this->application->isConfigurationChanged(true);
}
$this->isConfigurationChanged = $this->application->isConfigurationChanged();
if (is_null(data_get($this->application, 'custom_labels'))) {
$this->customLabels = str(implode(",", generateLabelsApplication($this->application)))->replace(',', "\n");