Skip to content

Commit

Permalink
Fixed undefined active control (#8334)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed Aug 22, 2024
1 parent 3fdb032 commit 86c1b22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.d/20240822_111601_sekachev.bs_fixed_minor_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Sometimes it is not possible to switch workspace because active control broken after
trying to create a tag with a shortcut (<https://github.com/cvat-ai/cvat/pull/8334>)
4 changes: 3 additions & 1 deletion cvat-ui/src/actions/annotation-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,9 @@ export function repeatDrawShapeAsync(): ThunkAction {
return;
}

activeControl = ShapeTypeToControl[activeShapeType];
if (activeObjectType !== ObjectType.TAG) {
activeControl = ShapeTypeToControl[activeShapeType];
}

if (canvasInstance instanceof Canvas) {
canvasInstance.cancel();
Expand Down

0 comments on commit 86c1b22

Please sign in to comment.