From 2cbf7d9221bdce7e7dee5072000e1cf601236318 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 17 May 2024 20:18:20 +1000 Subject: [PATCH] fix(ui): stupid ts --- invokeai/frontend/web/src/features/nodes/types/field.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/nodes/types/field.ts b/invokeai/frontend/web/src/features/nodes/types/field.ts index 37e2a26397..4dcc478352 100644 --- a/invokeai/frontend/web/src/features/nodes/types/field.ts +++ b/invokeai/frontend/web/src/features/nodes/types/field.ts @@ -160,7 +160,7 @@ const zStatefulFieldType = z.union([ export type StatefulFieldType = z.infer; const statefulFieldTypeNames = zStatefulFieldType.options.map((o) => o.shape.name.value); export const isStatefulFieldType = (fieldType: FieldType): fieldType is StatefulFieldType => - statefulFieldTypeNames.includes(fieldType.name as any); + (statefulFieldTypeNames as string[]).includes(fieldType.name); const zFieldType = z.union([zStatefulFieldType, zStatelessFieldType]); export type FieldType = z.infer; // #endregion