diff --git a/app/src/lib/graph-interface/graph/Graph.svelte b/app/src/lib/graph-interface/graph/Graph.svelte index a68a7fd..48a9304 100644 --- a/app/src/lib/graph-interface/graph/Graph.svelte +++ b/app/src/lib/graph-interface/graph/Graph.svelte @@ -209,7 +209,6 @@ {/each} diff --git a/app/src/lib/graph-interface/helpers/nodeHelpers.ts b/app/src/lib/graph-interface/helpers/nodeHelpers.ts index c66b907..1058780 100644 --- a/app/src/lib/graph-interface/helpers/nodeHelpers.ts +++ b/app/src/lib/graph-interface/helpers/nodeHelpers.ts @@ -34,7 +34,7 @@ export function getSocketPosition( ]; } else { let height = 5; - let nodeType = node.state.type!; + const nodeType = node.state.type!; const inputs = nodeType.inputs || {}; for (const inputKey in inputs) { const h = getParameterHeight(nodeType, inputKey) / 10; diff --git a/packages/types/src/inputs.ts b/packages/types/src/inputs.ts index 54129c9..4a09b6e 100644 --- a/packages/types/src/inputs.ts +++ b/packages/types/src/inputs.ts @@ -91,7 +91,8 @@ export const NodeInputPathSchema = z.object({ export const NodeInputAnySchema = z.object({ ...DefaultOptionsSchema.shape, - type: z.literal('*') + type: z.literal('*'), + value: z.any().optional() }); export const NodeInputSchema = z.union([