We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a9dc6b commit deaa8f0Copy full SHA for deaa8f0
src/components/platformSelector/index.tsx
@@ -195,9 +195,15 @@ export function PlatformSelector({
195
platform={{
196
...platform,
197
// only keep guides that are in the matches list
198
- guides: platform.guides.filter(g =>
199
- matches.some(m => m.key === g.key)
200
- ),
+ guides: platform.guides
+ .filter(g =>
+ matches.some(m => m.key === g.key && m.type === 'guide')
201
+ )
202
+ .sort((a, b) => {
203
+ const indexA = matches.findIndex(m => m.key === a.key);
204
+ const indexB = matches.findIndex(m => m.key === b.key);
205
+ return indexA - indexB;
206
+ }),
207
208
integrations: platform.integrations.filter(i =>
209
matches.some(m => m.key === i.key)
0 commit comments