mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 16:40:05 +00:00
Use ComfyNodeDefImpl on nodeSearchService (#233)
* Make nodeSearchService use ComfyNodeDefImpl * Fix test
This commit is contained in:
@@ -236,7 +236,11 @@ export const useNodeDefStore = defineStore('nodeDef', {
|
||||
return Object.values(state.nodeDefsByName)
|
||||
},
|
||||
nodeSearchService(state) {
|
||||
return new NodeSearchService(Object.values(state.nodeDefsByName))
|
||||
return new NodeSearchService(
|
||||
Object.values(state.nodeDefsByName).map((nodeDef) =>
|
||||
plainToClass(ComfyNodeDefImpl, nodeDef)
|
||||
)
|
||||
)
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
Reference in New Issue
Block a user