mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-21 07:14:11 +00:00
Update src/stores/modelToNodeStore.ts
Co-authored-by: Alexander Brown <drjkl@comfy.org>
This commit is contained in:
@@ -85,10 +85,12 @@ export const useModelToNodeStore = defineStore('modelToNode', () => {
|
||||
if (exactMatch && exactMatch.length > 0) return exactMatch
|
||||
|
||||
const topLevel = modelType.split('/')[0]
|
||||
if (topLevel !== modelType) {
|
||||
const fallback = modelToNodeMap.value[topLevel]
|
||||
if (fallback && fallback.length > 0) return fallback
|
||||
}
|
||||
if (topLevel === modelType) return undefined
|
||||
|
||||
const fallback = modelToNodeMap.value[topLevel]
|
||||
|
||||
if (fallback && fallback.length > 0) return fallback
|
||||
|
||||
return undefined
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user