From 6107e3d28131482a6c904dc103642777cb51108d Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 8 May 2024 11:01:20 +1000 Subject: [PATCH] fix(ui): fix zControlAdapterBase schema weight --- .../web/src/features/controlLayers/util/controlAdapters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/util/controlAdapters.ts b/invokeai/frontend/web/src/features/controlLayers/util/controlAdapters.ts index f9dc114767..b643e4a64d 100644 --- a/invokeai/frontend/web/src/features/controlLayers/util/controlAdapters.ts +++ b/invokeai/frontend/web/src/features/controlLayers/util/controlAdapters.ts @@ -195,7 +195,7 @@ const zBeginEndStepPct = z const zControlAdapterBase = z.object({ id: zId, - weight: z.number().gte(0).lte(0), + weight: z.number().gte(0).lte(1), image: zImageWithDims.nullable(), processedImage: zImageWithDims.nullable(), isProcessingImage: z.boolean(),