From fc1c60f7354c0ac752f568e42aeef6f340b7bb70 Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Wed, 2 Dec 2020 11:24:29 +0300 Subject: [PATCH 1/2] Fixed issue 2516 --- cvat-ui/src/actions/annotation-actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cvat-ui/src/actions/annotation-actions.ts b/cvat-ui/src/actions/annotation-actions.ts index fdf86a7f2d07..634aeaf34eda 100644 --- a/cvat-ui/src/actions/annotation-actions.ts +++ b/cvat-ui/src/actions/annotation-actions.ts @@ -510,13 +510,13 @@ export function removeObjectAsync(sessionInstance: any, objectState: any, force: }, }); } else { - throw new Error('Could not remove the object. Is it locked?'); + throw new Error('Could not remove the locked object'); } } catch (error) { dispatch({ type: AnnotationActionTypes.REMOVE_OBJECT_FAILED, payload: { - objectState, + error, }, }); } From 2cdc7aeef0e73bcc89110e923f583cbc6da92616 Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Wed, 2 Dec 2020 11:26:37 +0300 Subject: [PATCH 2/2] Updated changelog & version --- CHANGELOG.md | 1 + cvat-ui/package-lock.json | 2 +- cvat-ui/package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 602b284de8e5..4785f3d0d236 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Projects view layout fix () - Fixed the tasks view (infinite loading) when it is impossible to get a preview of the task () - Empty frames navigation () +- TypeError: Cannot read property 'toString' of undefined () ### Security diff --git a/cvat-ui/package-lock.json b/cvat-ui/package-lock.json index 08cea1144979..59a75dbd6440 100644 --- a/cvat-ui/package-lock.json +++ b/cvat-ui/package-lock.json @@ -1,6 +1,6 @@ { "name": "cvat-ui", - "version": "1.11.0", + "version": "1.11.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/cvat-ui/package.json b/cvat-ui/package.json index 4dea1406d1a6..35884c245bef 100644 --- a/cvat-ui/package.json +++ b/cvat-ui/package.json @@ -1,6 +1,6 @@ { "name": "cvat-ui", - "version": "1.11.0", + "version": "1.11.1", "description": "CVAT single-page application", "main": "src/index.tsx", "scripts": {