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 01e698a commit 8ceebdfCopy full SHA for 8ceebdf
src/plot_api/helpers.js
@@ -529,7 +529,7 @@ const collectionsAreEqual = (collection1, collection2) => {
529
}
530
531
return true;
532
- } else {
+ } else if ([collection1, collection2].every((a) => Lib.isPlainObject(a))) {
533
if (Object.keys(collection1).length !== Object.keys(collection2).length) return false;
534
535
for (const k in collection1) {
@@ -544,5 +544,7 @@ const collectionsAreEqual = (collection1, collection2) => {
544
545
546
547
+
548
+ return false;
549
};
550
exports.collectionsAreEqual = collectionsAreEqual;
0 commit comments