mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 01:09:46 +00:00
[backport core/1.42] fix: search media assets by display_name in addition to name (#10874)
Backport of #10254 to `core/1.42` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-10874-backport-core-1-42-fix-search-media-assets-by-display_name-in-addition-to-name-33a6d73d365081e389f9e25a1d32d032) by [Unito](https://www.unito.io) Co-authored-by: Yourz <crazilou@vip.qq.com> Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -37,7 +37,7 @@ export function useMediaAssetFiltering(assets: Ref<AssetItem[]>) {
|
||||
const mediaTypeFilters = ref<string[]>([])
|
||||
|
||||
const fuseOptions = {
|
||||
keys: ['name'],
|
||||
keys: ['display_name', 'name'],
|
||||
threshold: 0.4,
|
||||
includeScore: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user