From 946ab81d87b9cf568444d769d21160345adaf154 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sat, 7 Dec 2024 14:35:14 +0100 Subject: [PATCH] is_required is not required for shared envs --- app/Livewire/Project/Shared/EnvironmentVariable/Show.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php index e71cd9f42..6294d97c6 100644 --- a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php +++ b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php @@ -88,6 +88,9 @@ class Show extends Component public function lock() { $this->env->is_shown_once = true; + if ($this->isSharedVariable) { + unset($this->env->is_required); + } $this->serialize(); $this->env->save(); $this->checkEnvs();