feat(ui): temp disable history on CL

This commit is contained in:
psychedelicious 2024-06-06 08:53:38 +10:00
parent 20e6a57cf1
commit 5691829de6

View File

@ -1007,6 +1007,8 @@ export const controlLayersUndoableConfig: UndoableOptions<ControlLayersState, Un
return null; return null;
}, },
filter: (action, _state, _history) => { filter: (action, _state, _history) => {
// TODO(psyche): TEMP OVERRIDE
return false;
// // Ignore all actions from other slices // // Ignore all actions from other slices
// if (!action.type.startsWith(controlLayersSlice.name)) { // if (!action.type.startsWith(controlLayersSlice.name)) {
// return false; // return false;
@ -1016,6 +1018,6 @@ export const controlLayersUndoableConfig: UndoableOptions<ControlLayersState, Un
// if (layerBboxChanged.match(action)) { // if (layerBboxChanged.match(action)) {
// return false; // return false;
// } // }
return true; // return true;
}, },
}; };