diff --git a/vizro-core/src/vizro/models/_components/form/_form_utils.py b/vizro-core/src/vizro/models/_components/form/_form_utils.py index c176ac1df..2c167df91 100644 --- a/vizro-core/src/vizro/models/_components/form/_form_utils.py +++ b/vizro-core/src/vizro/models/_components/form/_form_utils.py @@ -95,6 +95,7 @@ def validate_step(cls, step, values): def set_default_marks(cls, marks, values): - if marks is None: + if marks is None or (not marks and values.get("step") is None): return None + return marks if values.get("step") is None else {}