fixed activation bug

main
Dmitry Kalinin 6 years ago
parent 2c21068417
commit 6bb6258b8f

@ -1,6 +1,6 @@
{ {
"name": "cvat-ui", "name": "cvat-ui",
"version": "1.2.0", "version": "1.2.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

@ -1,6 +1,6 @@
{ {
"name": "cvat-ui", "name": "cvat-ui",
"version": "1.2.0", "version": "1.2.1",
"description": "CVAT single-page application", "description": "CVAT single-page application",
"main": "src/index.tsx", "main": "src/index.tsx",
"scripts": { "scripts": {

@ -571,7 +571,7 @@ export default class CanvasWrapperComponent extends React.PureComponent<Props> {
canvasInstance.fit(); canvasInstance.fit();
} }
} }
if (activatedState.objectType !== ObjectType.TAG) { if (activatedState && activatedState.objectType !== ObjectType.TAG) {
canvasInstance.activate(activatedStateID, activatedAttributeID); canvasInstance.activate(activatedStateID, activatedAttributeID);
} }
const el = window.document.getElementById(`cvat_canvas_shape_${activatedStateID}`); const el = window.document.getElementById(`cvat_canvas_shape_${activatedStateID}`);

Loading…
Cancel
Save