Skip to content

Commit

Permalink
[base] Fix wrong typeof check (#1828)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Apr 6, 2020
1 parent 6f1dac5 commit 379ba25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function jsonMap(value, mapFn) {

const mapRefNodes = (doc, mapFn) =>
jsonMap(doc, node => {
return typeof node && typeof node === 'object' && typeof node._ref === 'string'
return node && typeof node === 'object' && typeof node._ref === 'string'
? mapFn(node)
: node
})
Expand Down

0 comments on commit 379ba25

Please sign in to comment.