When filtering by IO type, put wildcards last (#6829)

| Before | After |
| ------ | ----- |
| <img width="360" alt="before"
src="https://github.com/user-attachments/assets/628057b2-4844-490d-9899-fce82d8e2d58"
/> | <img width="360" alt="after"
src="https://github.com/user-attachments/assets/2825f15f-c084-4e3d-8b22-cc0aa3febdce"
/> |

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6829-When-filtering-by-IO-type-put-wildcards-last-2b36d73d36508196a41fed40b62f5b84)
by [Unito](https://www.unito.io)
This commit is contained in:
AustinMroz
2025-11-22 12:43:05 -08:00
committed by GitHub
parent 4adcf09cca
commit a91b9f288f
2 changed files with 17 additions and 5 deletions

View File

@@ -62,10 +62,9 @@ export class FuseFilter<T, O = string> {
return true
}
const options = this.getItemOptions(item)
return (
options.includes(value) ||
(!!wildcard && options.some((option) => option === wildcard))
)
return wildcard
? options.some((option) => option === wildcard)
: options.includes(value)
}
}