From 5e5873a08deda70c507f54211f0481c860c49578 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 2 Jan 2024 11:46:02 +0100 Subject: [PATCH] fix: duplicate compose variable --- bootstrap/helpers/shared.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index 2bb619aa8..deb8ca6a8 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -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'); }