From 53ee5904e8293bdcc575a61d7a4c01552c65fdb8 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Mon, 21 Apr 2025 21:13:42 +1000 Subject: [PATCH] [TS] Fix serialisation type (#3541) --- src/services/litegraphService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/litegraphService.ts b/src/services/litegraphService.ts index af6c881a9..c274f67af 100644 --- a/src/services/litegraphService.ts +++ b/src/services/litegraphService.ts @@ -1,6 +1,5 @@ import { type IContextMenuValue, - type INodeInputSlot, LGraphEventMode, LGraphNode, LiteGraph, @@ -8,6 +7,7 @@ import { type Vector2 } from '@comfyorg/litegraph' import type { + ISerialisableNodeInput, ISerialisableNodeOutput, ISerialisedNode } from '@comfyorg/litegraph/dist/types/serialisation' @@ -222,7 +222,7 @@ export const useLitegraphService = () => { // Note: input name is unique in a node definition, so we can lookup // input by name. - const inputByName = new Map( + const inputByName = new Map( data.inputs?.map((input) => [input.name, input]) ?? [] ) // Inputs defined by the node definition.