diff --git a/libs/blocks/locui/actions/index.js b/libs/blocks/locui/actions/index.js index 61fb3c8bdf..33cf584add 100644 --- a/libs/blocks/locui/actions/index.js +++ b/libs/blocks/locui/actions/index.js @@ -125,7 +125,7 @@ export async function findFragments() { if (fragments.length > 0) { fragments.forEach((fragment) => { // De-dupe across pages that share fragments - const dupe = acc.some((url) => url[0] === fragment.href); + const dupe = acc.some((url) => url[0]?.href === fragment.href); if (!dupe) acc.push([fragment]); }); }