Skip to content

Commit e52e9c0

Browse files
committed
handle duplicate tagIds
1 parent 76d0696 commit e52e9c0

File tree

2 files changed

+2
-96
lines changed

2 files changed

+2
-96
lines changed

apps/web/lib/api/tags/combine-tag-ids.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export function combineTagIds({
1010
}): string[] | undefined {
1111
// Use tagIds if present, fall back to tagId
1212
if (tagIds && Array.isArray(tagIds)) {
13-
return tagIds;
13+
// remove duplicates
14+
return [...new Set(tagIds)];
1415
}
1516
return tagId === null ? [] : tagId !== undefined ? [tagId] : undefined;
1617
}

apps/web/scripts/bulk-create-links.ts

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)