diff --git a/CHANGELOG.md b/CHANGELOG.md index 831f383332d9..894f6ed04356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed the tasks view (infinite loading) when it is impossible to get a preview of the task () - Empty frames navigation () - Disabled position editing in AAM () +- TypeError: Cannot read property 'toString' of undefined () ### Security diff --git a/cvat-ui/src/actions/annotation-actions.ts b/cvat-ui/src/actions/annotation-actions.ts index 8f486e96d48d..1d98243e819b 100644 --- a/cvat-ui/src/actions/annotation-actions.ts +++ b/cvat-ui/src/actions/annotation-actions.ts @@ -520,13 +520,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, }, }); }