Update src/stores/modelToNodeStore.ts

Co-authored-by: Alexander Brown <drjkl@comfy.org>
This commit is contained in:
Christian Byrne
2026-01-29 12:01:31 -08:00
committed by GitHub
parent 050868c7d2
commit 22ce64ad09

View File

@@ -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
}