Skip to content

Commit ecd5127

Browse files
authored
Fix the error message selection condition
I have no idea how this eluded me when I first wrote this.
1 parent efa4c88 commit ecd5127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

render/vnode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Vnode.normalizeChildren = function(input) {
1919
for (var i = 1; i < input.length; i++) {
2020
if ((input[i] != null && input[i].key != null) !== isKeyed) {
2121
throw new TypeError(
22-
isKeyed && (input[i] != null || typeof input[i] === "boolean")
22+
isKeyed && (input[i] != null && typeof input[i] !== "boolean")
2323
? "In fragments, vnodes must either all have keys or none have keys. You may wish to consider using an explicit keyed empty fragment, m.fragment({key: ...}), instead of a hole."
2424
: "In fragments, vnodes must either all have keys or none have keys."
2525
)

0 commit comments

Comments
 (0)