From ae7cb6ecfa4ebd403218b8e8ba442b30863b6081 Mon Sep 17 00:00:00 2001 From: Nathaniel Rindlaub Date: Sun, 23 Jan 2022 10:15:34 -0800 Subject: [PATCH] Fix bbox update undo bug --- src/features/review/undoMiddleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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