fix: duplicate compose variable

This commit is contained in:
Andras Bacsai 2024-01-02 11:46:02 +01:00
parent 14652c2878
commit 5e5873a08d

View File

@ -1399,6 +1399,11 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
$key = $value;
$defaultValue = null;
}
$foundEnv = EnvironmentVariable::where([
'key' => $key,
'application_id' => $resource->id,
'is_preview' => false,
])->first();
if ($foundEnv) {
$defaultValue = data_get($foundEnv, 'value');
}