Skip to content

Commit 5be05af

Browse files
committed
fix bug when adding empty components
1 parent cc51b71 commit 5be05af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vhtml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function h(name, attrs) {
1313

1414
// Sortof component support!
1515
if (typeof name==='function') {
16-
attrs.children = stack.reverse();
16+
if (attrs) attrs.children = stack.reverse();
1717
return name(attrs);
1818
// return name(attrs, stack.reverse());
1919
}

0 commit comments

Comments
 (0)