Skip to content

Commit

Permalink
enhance raw format condition
Browse files Browse the repository at this point in the history
  • Loading branch information
syrk4web committed Aug 8, 2024
1 parent 7614079 commit 1b3cf7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ui/client/tests/builder/utils/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ def set_raw(template: list, plugins_base: list, settings: dict, is_new: bool) ->
# 1 - the current value is default and from template
# 2 - the current value is default and not from template
# 3 - the current value is not default but from template
if (
(template_value is not None and is_current_default and is_current_from_template)
or (template_value is not None and not is_current_from_template and is_current_default)
or (template_value is not None and is_current_from_template and not is_current_default)
if template_value is not None and (
(is_current_default and is_current_from_template)
or (not is_current_from_template and is_current_default)
or (is_current_from_template and not is_current_default)
):
raw_settings[setting] = template_value
continue
Expand Down

0 comments on commit 1b3cf7e

Please sign in to comment.