From 1625854eaf51aab68f5348610e36821ffd3c2d5a Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 21 Sep 2023 11:43:05 +1000 Subject: [PATCH] fix(nodes): fix ip-adapter field positioning on workflow editor --- invokeai/app/invocations/ip_adapter.py | 4 +--- invokeai/frontend/web/src/features/nodes/types/constants.ts | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/invokeai/app/invocations/ip_adapter.py b/invokeai/app/invocations/ip_adapter.py index 0c5b858112..3e3a3d9b1f 100644 --- a/invokeai/app/invocations/ip_adapter.py +++ b/invokeai/app/invocations/ip_adapter.py @@ -58,9 +58,7 @@ class IPAdapterInvocation(BaseInvocation): # Inputs image: ImageField = InputField(description="The IP-Adapter image prompt.") ip_adapter_model: IPAdapterModelField = InputField( - description="The IP-Adapter model.", - title="IP-Adapter Model", - input=Input.Direct, + description="The IP-Adapter model.", title="IP-Adapter Model", input=Input.Direct, ui_order=-1 ) # weight: float = InputField(default=1.0, description="The weight of the IP-Adapter.", ui_type=UIType.Float) diff --git a/invokeai/frontend/web/src/features/nodes/types/constants.ts b/invokeai/frontend/web/src/features/nodes/types/constants.ts index a54f84d3f0..92a6a32e3a 100644 --- a/invokeai/frontend/web/src/features/nodes/types/constants.ts +++ b/invokeai/frontend/web/src/features/nodes/types/constants.ts @@ -116,6 +116,7 @@ export const TYPES_WITH_INPUT_COMPONENTS = [ 'ColorField', 'SDXLMainModelField', 'Scheduler', + 'IPAdapterModelField', ]; export const isPolymorphicItemType = (