Skip to content

Commit 5a51891

Browse files
committed
fix(integrations): correct integrationType key so the integrations page renders
The merged email-verification blocks (zerobounce, neverbounce, millionverifier) were serialized into integrations.json with a typo'd `integrationTypes: ["sales"]` plural array instead of the singular `integrationType` the catalog reads. They fell into an `undefined` category bucket, and sorting sections by label threw "Cannot read properties of undefined (reading 'localeCompare')", erroring the whole page. - Correct the three entries to `integrationType: "sales"` (matches each block config's IntegrationType.Sales and the generator's output) - Defensively skip any integration without an integrationType when grouping so a single malformed catalog entry can never crash the page again
1 parent e257d06 commit 5a51891

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

apps/sim/app/workspace/[workspaceId]/integrations/integrations.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const INTEGRATION_BY_LOWER_NAME: ReadonlyMap<string, Integration> = new Map(
5454
const ALL_CATEGORY_SECTIONS: readonly { label: string; integrations: Integration[] }[] = (() => {
5555
const grouped = new Map<string, Integration[]>()
5656
for (const integration of INTEGRATIONS) {
57+
if (!integration.integrationType) continue
5758
const bucket = grouped.get(integration.integrationType)
5859
if (bucket) bucket.push(integration)
5960
else grouped.set(integration.integrationType, [integration])

apps/sim/lib/integrations/integrations.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9539,7 +9539,7 @@
95399539
"triggerCount": 0,
95409540
"authType": "api-key",
95419541
"category": "tools",
9542-
"integrationTypes": ["sales"],
9542+
"integrationType": "sales",
95439543
"tags": ["enrichment", "sales-engagement"]
95449544
},
95459545
{
@@ -9791,7 +9791,7 @@
97919791
"triggerCount": 0,
97929792
"authType": "api-key",
97939793
"category": "tools",
9794-
"integrationTypes": ["sales"],
9794+
"integrationType": "sales",
97959795
"tags": ["enrichment", "sales-engagement"]
97969796
},
97979797
{
@@ -15180,7 +15180,7 @@
1518015180
"triggerCount": 0,
1518115181
"authType": "api-key",
1518215182
"category": "tools",
15183-
"integrationTypes": ["sales"],
15183+
"integrationType": "sales",
1518415184
"tags": ["enrichment", "sales-engagement"]
1518515185
},
1518615186
{

0 commit comments

Comments
 (0)