From 29ccc6a3d83fd4e317c880ce0bd2c671975565f1 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 3 Jan 2024 13:09:58 +1100 Subject: [PATCH] chore(ui): lint --- .../flow/nodes/Invocation/fields/InputField.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/InputField.tsx b/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/InputField.tsx index 49441ac138..adda415d6d 100644 --- a/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/InputField.tsx +++ b/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/InputField.tsx @@ -46,11 +46,15 @@ const InputField = ({ nodeId, fieldName }: Props) => { return true; } - if (!doesFieldHaveValue && !isConnected && fieldTemplate.input !== 'connection') { + if ( + !doesFieldHaveValue && + !isConnected && + fieldTemplate.input !== 'connection' + ) { return true; } - return false + return false; }, [fieldTemplate, isConnected, doesFieldHaveValue]); if (!fieldTemplate || !fieldInstance) {