Skip to content

Commit

Permalink
Merge pull request #1647 from opencv/dk/batch_of_fixes_1
Browse files Browse the repository at this point in the history
Fixed activation bug with frame switching
  • Loading branch information
ActiveChooN authored Jun 5, 2020
2 parents fa9b463 + 6bb6258 commit 45f71f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ export default class CanvasWrapperComponent extends React.PureComponent<Props> {
canvasInstance.fit();
}
}
if (activatedState.objectType !== ObjectType.TAG) {
if (activatedState && activatedState.objectType !== ObjectType.TAG) {
canvasInstance.activate(activatedStateID, activatedAttributeID);
}
const el = window.document.getElementById(`cvat_canvas_shape_${activatedStateID}`);
Expand Down

0 comments on commit 45f71f8

Please sign in to comment.