Skip to content

Commit

Permalink
validate materialized children on components
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Nov 15, 2022
1 parent 7e3c068 commit 6724d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug/src/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export function initDebug() {
// Putting this check in `options.diffed` ensures that
// `vnode._children` is set and that we only validate the children
// that were actually rendered.
if (typeof vnode.type === 'string' && vnode._children) {
if (vnode._children) {
vnode._children.forEach(child => {
if (typeof child === 'object' && child && child.type === undefined) {
const keys = Object.keys(child).join(',');
Expand Down

0 comments on commit 6724d43

Please sign in to comment.