Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fix: OPTIC-133: Blank draft submitted with annotation when using hotk…
Browse files Browse the repository at this point in the history
…ey submit (#1573)
  • Loading branch information
bmartel authored Sep 28, 2023
1 parent d34cf03 commit 2c14257
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/stores/AppStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ export default types

const entity = annotationStore.selected;

entity?.submissionInProgress();

if (self.hasInterface('review')) {
self.acceptAnnotation();
Expand All @@ -351,6 +352,10 @@ export default types
hotkeys.addNamed('annotation:skip', () => {
if (self.annotationStore.viewingAll) return;

const entity = self.annotationStore.selected;

entity?.submissionInProgress();

if (self.hasInterface('review')) {
self.rejectAnnotation();
} else {
Expand Down

0 comments on commit 2c14257

Please sign in to comment.