From d2f5103f9f13a70216f4d02e72890129ec99cdce Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 17 May 2024 12:16:13 +1000 Subject: [PATCH] fix(ui): ignore actions from other slices in nodesSlice history --- invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts b/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts index cfd9fa8ef8..2218530c31 100644 --- a/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts +++ b/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts @@ -651,6 +651,10 @@ export const nodesUndoableConfig: UndoableOptions = { return null; }, filter: (action, _state, _history) => { + // Ignore all actions from other slices + if (!action.type.startsWith(nodesSlice.name)) { + return false; + } if (nodesChanged.match(action)) { if (action.payload.every((change) => change.type === 'dimensions')) { return false;