From 9ba47cae20fc8b6e132966100d74ce1ef883fbee Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 21 May 2024 11:27:11 +1000 Subject: [PATCH] fix(ui): unable to edit notes node title --- invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts b/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts index e7c1877647..5ebc5de147 100644 --- a/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts +++ b/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts @@ -275,10 +275,9 @@ export const nodesSlice = createSlice({ const { nodeId, label } = action.payload; const nodeIndex = state.nodes.findIndex((n) => n.id === nodeId); const node = state.nodes?.[nodeIndex]; - if (!isInvocationNode(node)) { - return; + if (isInvocationNode(node) || isNotesNode(node)) { + node.data.label = label; } - node.data.label = label; }, nodeNotesChanged: (state, action: PayloadAction<{ nodeId: string; notes: string }>) => { const { nodeId, notes } = action.payload;