Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/patch-2' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
lingxuan630 committed Aug 21, 2018
2 parents 1a0fc55 + 9f04bd5 commit d55bcf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nerv-shared/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function isVText (node): node is VText {
}

export function isComponent (instance): instance is Component<any, any> {
return !isInvalid(instance) && instance.isReactComponent === EMPTY_OBJ
return !isInvalid(instance) && !isNullOrUndef(instance.isReactComponent)
}

export function isWidget (
Expand Down

0 comments on commit d55bcf8

Please sign in to comment.