is_required is not required for shared envs

This commit is contained in:
Andras Bacsai
2024-12-07 14:35:14 +01:00
parent ffd28de949
commit 946ab81d87

View File

@@ -88,6 +88,9 @@ class Show extends Component
public function lock() public function lock()
{ {
$this->env->is_shown_once = true; $this->env->is_shown_once = true;
if ($this->isSharedVariable) {
unset($this->env->is_required);
}
$this->serialize(); $this->serialize();
$this->env->save(); $this->env->save();
$this->checkEnvs(); $this->checkEnvs();