diff --git a/src/features/review/undoMiddleware.js b/src/features/review/undoMiddleware.js index 8c10ec2a..a6e4200c 100644 --- a/src/features/review/undoMiddleware.js +++ b/src/features/review/undoMiddleware.js @@ -53,7 +53,7 @@ export const undoMiddleware = createUndoMiddleware({ [bboxUpdated.toString()]: { action: (action, { oldBbox }) => { console.log("reverting bboxUpdated with action: ", action); - bboxUpdated({ + return bboxUpdated({ imgId: action.payload.imgId, objId: action.payload.objId, bbox: oldBbox