Skip to content

Commit

Permalink
prevent saving information while navigating files
Browse files Browse the repository at this point in the history
  • Loading branch information
sumn2u committed Jun 17, 2024
1 parent 65e330a commit c65b084
Show file tree
Hide file tree
Showing 3 changed files with 720 additions and 25 deletions.
2 changes: 0 additions & 2 deletions client/src/Annotator/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,8 @@ export const Annotator = ({
return onExit(without(state, "history"));
}
} else if (action.buttonName === "Next" && onNextImage) {
saveCurrentData(getActiveImage(state).activeImage);
return onNextImage(without(state, "history"));
} else if (action.buttonName === "Prev" && onPrevImage) {
saveCurrentData(getActiveImage(state).activeImage);
return onPrevImage(without(state, "history"));
} else if (action.buttonName === "Docs" ) {
return openDocs();
Expand Down
Loading

0 comments on commit c65b084

Please sign in to comment.