@portabletext/editor 7.10.15 → 7.10.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -2487,7 +2487,7 @@ function getTextDecorations(node, decorations) {
2487
2487
  }
2488
2488
  function isEqualValues(context, a, b) {
2489
2489
  if (!a || !b)
2490
- return a === b;
2490
+ return (a?.length ?? 0) === (b?.length ?? 0);
2491
2491
  if (a.length !== b.length)
2492
2492
  return !1;
2493
2493
  for (let index = 0; index < a.length; index++) {