Skip to content

Commit 2b1ffbc

Browse files
committed
Merge remote-tracking branch 'KidkArolis/fix-undefined-root'
2 parents 7540f6e + 9b9b804 commit 2b1ffbc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,9 @@
518518
// const DeepDiff = require('deep-diff');
519519
// const { DeepDiff } = require('deep-diff');
520520

521-
root.DeepDiff = accumulateDiff;
521+
if (root) {
522+
root.DeepDiff = accumulateDiff;
523+
}
524+
522525
return accumulateDiff;
523526
}));

0 commit comments

Comments
 (0)