Skip to content

Commit

Permalink
look at href property in fragment dup check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sartxi committed Jun 19, 2024
1 parent 8cb94ed commit c3b17cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/blocks/locui/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
});
}
Expand Down

0 comments on commit c3b17cc

Please sign in to comment.