Skip to content

Commit

Permalink
Further fix for Variable UI
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 1, 2024
1 parent 163381e commit 928981b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lumen/ui/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ def _add_from_spec(self, spec, enable=False):
enabled = spec.pop('enabled', enable)
variable = Variable.from_spec(spec, self._variables)
self._variables.add_variable(variable)
if 'key' in variable.param and not variable.key:
variable.key = variable.name
with param.edit_constant(variable):
if 'key' in variable.param and not variable.key:
variable.key = variable.name
variable.default = variable.value
params = [
p for p in variable.param if p not in (
Expand Down

0 comments on commit 928981b

Please sign in to comment.