Skip to content

Commit 6a05854

Browse files
committed
revert: remove slug duplicate guard
1 parent 67b6a5e commit 6a05854

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

  • apps/sim/app/(landing)/integrations/[slug]

apps/sim/app/(landing)/integrations/[slug]/page.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ const byName = new Map(allIntegrations.map((i) => [i.name, i]))
1818
const bySlug = new Map(allIntegrations.map((i) => [i.slug, i]))
1919
const byType = new Map(allIntegrations.map((i) => [i.type, i]))
2020

21-
if (process.env.NODE_ENV === 'development') {
22-
const slugsSeen = new Set<string>()
23-
for (const i of allIntegrations) {
24-
if (slugsSeen.has(i.slug)) throw new Error(`Duplicate integration slug: ${i.slug}`)
25-
slugsSeen.add(i.slug)
26-
}
27-
}
28-
2921
/** Returns workflow pairs that feature the given integration on either side. */
3022
function getPairsFor(name: string) {
3123
return POPULAR_WORKFLOWS.filter((p) => p.from === name || p.to === name)

0 commit comments

Comments
 (0)