Merge pull request #1647 from opencv/dk/batch_of_fixes_1

Fixed activation bug with frame switching
main
Dmitry Kalinin 6 years ago committed by GitHub
commit 45f71f846b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}`);

Loading…
Cancel
Save