Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Lendemor committed Oct 5, 2023
1 parent 06a8627 commit 71e7485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflex/components/overlay/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def create(
The MenuList component.
"""
if len(children) == 0:
if not items:
if items is None:
items = []
children = [
child if isinstance(child, MenuItem) else MenuItem.create(child)
Expand Down

0 comments on commit 71e7485

Please sign in to comment.