mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-13 09:00:16 +00:00
Remove class-transformer dependency (#1187)
* nit * Fix test * Remove class-transformer and its deps * nit * Fix invalid type for dummy node
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { NodeSearchService } from '@/services/nodeSearchService'
|
||||
import { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
||||
import { plainToClass } from 'class-transformer'
|
||||
|
||||
const EXAMPLE_NODE_DEFS: ComfyNodeDefImpl[] = [
|
||||
{
|
||||
@@ -52,7 +51,7 @@ const EXAMPLE_NODE_DEFS: ComfyNodeDefImpl[] = [
|
||||
output_node: false
|
||||
}
|
||||
].map((nodeDef) => {
|
||||
const def = plainToClass(ComfyNodeDefImpl, nodeDef)
|
||||
const def = new ComfyNodeDefImpl(nodeDef)
|
||||
def['postProcessSearchScores'] = (s) => s
|
||||
return def
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user