We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a011e40 commit 32d2c57Copy full SHA for 32d2c57
src/utils.js
@@ -19,7 +19,7 @@ export function extractRefs (doc, oldDoc, path = '', result = [{}, {}]) {
19
return Object.keys(doc).reduce((tot, key) => {
20
const ref = doc[key]
21
// if it's a ref
22
- if (typeof ref.isEqual === 'function') {
+ if (ref && typeof ref.isEqual === 'function') {
23
tot[0][key] = oldDoc[key] || ref.path
24
// TODO handle subpathes?
25
tot[1][path + key] = ref
0 commit comments