Skip to content

Commit

Permalink
Allows strings if layout is a list
Browse files Browse the repository at this point in the history
  • Loading branch information
leeagustin committed Jun 22, 2024
1 parent b13d9b8 commit 941a95b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dash/_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,13 @@ def _validate_id(comp):

if isinstance(layout_value, (list, tuple)):
for component in layout_value:
if isinstance(component, (str,)):
continue
if isinstance(component, (Component,)):
_validate(component)
else:
raise exceptions.NoLayoutException(
"List of components as layout must be a list of components only."
"List of components as layout must be a list of strings and components only."
)
else:
_validate(layout_value)
Expand Down

0 comments on commit 941a95b

Please sign in to comment.