Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/idom/core/vdom.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,11 @@ def _is_single_child(value: Any) -> bool:
)
else:
for child in value:
if (isinstance(child, ComponentType) and child.key is None) or (
isinstance(child, Mapping) and "key" not in child
):
if isinstance(child, ComponentType) and child.key is None:
logger.error(f"Key not specified for child in list {child}")
elif isinstance(child, Mapping) and "key" not in child:
# remove 'children' to reduce log spam
child_copy = {**child, "children": ...}
logger.error(f"Key not specified for child in list {child_copy}")

return False