Skip to content

Commit b217645

Browse files
author
Boris Sekachev
authored
Merge pull request #2517 from openvinotoolkit/bs/fixed_issue_2516
Fixed: TypeError: Cannot read property 'toString' of undefined
2 parents 24341ef + 7ebc8d0 commit b217645

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4040
- Fixed the tasks view (infinite loading) when it is impossible to get a preview of the task (<https://github.com/openvinotoolkit/cvat/pull/2504>)
4141
- Empty frames navigation (<https://github.com/openvinotoolkit/cvat/pull/2505>)
4242
- Disabled position editing in AAM (<https://github.com/openvinotoolkit/cvat/pull/2506>)
43+
- TypeError: Cannot read property 'toString' of undefined (<https://github.com/openvinotoolkit/cvat/pull/2517>)
4344

4445
### Security
4546

cvat-ui/src/actions/annotation-actions.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,13 @@ export function removeObjectAsync(sessionInstance: any, objectState: any, force:
520520
},
521521
});
522522
} else {
523-
throw new Error('Could not remove the object. Is it locked?');
523+
throw new Error('Could not remove the locked object');
524524
}
525525
} catch (error) {
526526
dispatch({
527527
type: AnnotationActionTypes.REMOVE_OBJECT_FAILED,
528528
payload: {
529-
objectState,
529+
error,
530530
},
531531
});
532532
}

0 commit comments

Comments
 (0)