mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 09:08:32 +02:00
Fix cmd+p filtering reference
https://feedback.yaak.app/p/search-doesnt-actually-search-through-all-the-apis
This commit is contained in:
@@ -350,10 +350,10 @@ export function CommandPaletteDialog({ onClose }: { onClose: () => void }) {
|
|||||||
|
|
||||||
const filteredGroups = groups
|
const filteredGroups = groups
|
||||||
.map((g) => {
|
.map((g) => {
|
||||||
g.items = result
|
const items = result
|
||||||
.filter((i) => g.items.find((i2) => i2.key === i.key))
|
.filter((i) => g.items.find((i2) => i2.key === i.key))
|
||||||
.slice(0, MAX_PER_GROUP);
|
.slice(0, MAX_PER_GROUP);
|
||||||
return g;
|
return { ...g, items };
|
||||||
})
|
})
|
||||||
.filter((g) => g.items.length > 0);
|
.filter((g) => g.items.length > 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user