Fixed cannot read property 'newLabelName' of undefined (#3517)

* Fixed issue

* Added CHANGELOG, increased version
main
Dmitry Kalinin 5 years ago committed by GitHub
parent 83d086d212
commit 8e33283c48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed multiple tasks moving (<https://github.com/openvinotoolkit/cvat/pull/3517>)
- Fixed task creating CLI parameter (<https://github.com/openvinotoolkit/cvat/pull/3519>)
### Security

@ -1,6 +1,6 @@
{
"name": "cvat-ui",
"version": "1.21.2",
"version": "1.21.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

@ -1,6 +1,6 @@
{
"name": "cvat-ui",
"version": "1.21.2",
"version": "1.21.3",
"description": "CVAT single-page application",
"main": "src/index.tsx",
"scripts": {

@ -34,8 +34,8 @@ export default function MoveTaskModal(): JSX.Element {
const [labelMap, setLabelMap] = useState<{ [key: string]: LabelMapperItemValue }>({});
const initValues = (): void => {
const labelValues: { [key: string]: LabelMapperItemValue } = {};
if (task) {
const labelValues: { [key: string]: LabelMapperItemValue } = {};
task.labels.forEach((label: any) => {
labelValues[label.id] = {
labelId: label.id,
@ -43,8 +43,8 @@ export default function MoveTaskModal(): JSX.Element {
clearAttributes: true,
};
});
setLabelMap(labelValues);
}
setLabelMap(labelValues);
};
const onCancel = (): void => {

Loading…
Cancel
Save