From fc1c60f7354c0ac752f568e42aeef6f340b7bb70 Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Wed, 2 Dec 2020 11:24:29 +0300 Subject: [PATCH] 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 fdf86a7f..634aeaf3 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, }, }); }