From 654591cbf30068ef8c1eaadbe2b8b88fce2a3748 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sun, 26 Nov 2023 21:07:49 +1100 Subject: [PATCH] feat(ui): make buildFieldInputTemplate arg name consistent --- .../web/src/features/nodes/util/buildFieldInputTemplate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/invokeai/frontend/web/src/features/nodes/util/buildFieldInputTemplate.ts b/invokeai/frontend/web/src/features/nodes/util/buildFieldInputTemplate.ts index 8d11ac25b9..0deddf0dea 100644 --- a/invokeai/frontend/web/src/features/nodes/util/buildFieldInputTemplate.ts +++ b/invokeai/frontend/web/src/features/nodes/util/buildFieldInputTemplate.ts @@ -326,7 +326,7 @@ export const TEMPLATE_BUILDER_MAP: Record< export const buildFieldInputTemplate = ( fieldSchema: InvocationFieldSchema, - name: string, + fieldName: string, fieldType: FieldType ): FieldInputTemplate => { const { @@ -342,8 +342,8 @@ export const buildFieldInputTemplate = ( // This is the base field template that is common to all fields. The builder function will add all other // properties to this template. const baseField: Omit = { - name, - title: fieldSchema.title ?? (name ? startCase(name) : ''), + name: fieldName, + title: fieldSchema.title ?? (fieldName ? startCase(fieldName) : ''), required, description: fieldSchema.description ?? '', fieldKind: 'input' as const,