Skip to content

Commit

Permalink
setting default marks for range slider and slider
Browse files Browse the repository at this point in the history
  • Loading branch information
nadijagraca committed Oct 16, 2023
1 parent d36b007 commit 4f545ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vizro-core/src/vizro/models/_components/form/_form_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

0 comments on commit 4f545ab

Please sign in to comment.