Skip to content

Commit

Permalink
Merge pull request #2517 from openvinotoolkit/bs/fixed_issue_2516
Browse files Browse the repository at this point in the history
Fixed: TypeError: Cannot read property 'toString' of undefined
  • Loading branch information
Boris Sekachev authored Dec 2, 2020
2 parents 24341ef + 7ebc8d0 commit b217645
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 (<https://github.com/openvinotoolkit/cvat/pull/2504>)
- Empty frames navigation (<https://github.com/openvinotoolkit/cvat/pull/2505>)
- Disabled position editing in AAM (<https://github.com/openvinotoolkit/cvat/pull/2506>)
- TypeError: Cannot read property 'toString' of undefined (<https://github.com/openvinotoolkit/cvat/pull/2517>)

### Security

Expand Down
4 changes: 2 additions & 2 deletions cvat-ui/src/actions/annotation-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});
}
Expand Down

0 comments on commit b217645

Please sign in to comment.