mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): unable to edit notes node title
This commit is contained in:
parent
bf4310ca71
commit
9ba47cae20
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user