We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01c55e8 commit ca9fe31Copy full SHA for ca9fe31
src/components/platformFilter/index.tsx
@@ -38,11 +38,15 @@ export function PlatformFilter({platforms}: {platforms: Platform[]}) {
38
uniqByReference(matches.map(x => (x.type === 'platform' ? x : x.platform))).map(p => {
39
return {
40
...p,
41
- guides: p.guides.filter(g => matches.some(m => m.key === g.key)),
+ guides: matches
42
+ .filter(m => m.type === 'guide' && m.platform.key === p.key)
43
+ .map(m => p.guides.find(g => g.key === m.key)!)
44
+ .filter(Boolean),
45
integrations: p.integrations.filter(i => matches.some(m => m.key === i.key)),
46
};
47
})
48
);
49
+
50
return (
51
<div>
52
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 py-8 md:items-end">
0 commit comments