diff --git a/src/idom/core/vdom.py b/src/idom/core/vdom.py index 8ea80f78c..8859b21c2 100644 --- a/src/idom/core/vdom.py +++ b/src/idom/core/vdom.py @@ -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