Skip to content

Commit

Permalink
Only show categories for v2 integrations
Browse files Browse the repository at this point in the history
This avoids having a category filter show up for an integration that
is v1-only (like Magento 2), which effectively just filters out all
integrations.
  • Loading branch information
greenberga committed Dec 13, 2024
1 parent 5f27593 commit a989214
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,6 @@ export const INTEGRATIONS: Integration[] = [
},
];

export const TAGS = new Set(INTEGRATIONS.flatMap((i) => i.tags));
export const TAGS = new Set(
INTEGRATIONS.filter((i) => i.fcVersion === "v2").flatMap((i) => i.tags)
);

0 comments on commit a989214

Please sign in to comment.