Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
chore: prettier
JPPhotoc839b5c5c010
diff --git a/invokeai/frontend/web/src/features/nodes/types/invocation.ts b/invokeai/frontend/web/src/features/nodes/types/invocation.tsindex 12316c7d8c..07b15b0825 100644--- a/invokeai/frontend/web/src/features/nodes/types/invocation.ts+++ b/invokeai/frontend/web/src/features/nodes/types/invocation.ts@@ -123,8 +123,7 @@ export const zInvocationNodeData = z? (rawInput as { value?: unknown }).value: undefined;const normalizedInput =- dynamicTemplate?.type.name === 'EnumField' &&- (typeof rawValue === 'number' || typeof rawValue === 'boolean')+ dynamicTemplate?.type.name === 'EnumField' && (typeof rawValue === 'number' || typeof rawValue === 'boolean')? { ...(rawInput as Record<string, unknown>), value: String(rawValue) }: rawInput;const result = instanceSchema.safeParse(normalizedInput);