mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): ignore actions from other slices in nodesSlice history
This commit is contained in:
parent
dd42a56084
commit
d2f5103f9f
@ -651,6 +651,10 @@ export const nodesUndoableConfig: UndoableOptions<NodesState, UnknownAction> = {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user