Skip to content

Commit 47c4125

Browse files
authored
Account for falsey non-null children
1 parent 65b193d commit 47c4125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function renderToString(vnode, context, opts, inner, isSvgMode, selectValue) {
248248
}
249249
s += html;
250250
}
251-
else if (props && getChildren(children = [], propChildren).length) {
251+
else if (propChildren != null && getChildren(children = [], propChildren).length) {
252252
let hasLarge = pretty && ~s.indexOf('\n');
253253
let lastWasText = false;
254254

0 commit comments

Comments
 (0)