Skip to content

Commit

Permalink
Fix modifying Variable.default in builder UI
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 1, 2024
1 parent 0885a11 commit 163381e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lumen/ui/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def _add_from_spec(self, spec, enable=False):
self._variables.add_variable(variable)
if 'key' in variable.param and not variable.key:
variable.key = variable.name
variable.default = variable.value
with param.edit_constant(variable):
variable.default = variable.value
params = [
p for p in variable.param if p not in (
'name', 'materialize', 'required', 'secure', 'value'
Expand Down

0 comments on commit 163381e

Please sign in to comment.