fix(ui): resetting layer resets position

This commit is contained in:
psychedelicious 2024-07-03 16:17:53 +10:00
parent bd16dc4479
commit 63c5e42f2a

View File

@ -94,6 +94,8 @@ export const layersReducers = {
layer.bbox = null;
layer.bboxNeedsUpdate = false;
state.layers.imageCache = null;
layer.x = 0;
layer.y = 0;
},
layerDeleted: (state, action: PayloadAction<{ id: string }>) => {
const { id } = action.payload;