mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 09:00:05 +00:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user