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
- Fixed multiple tasks moving (<https://github.com/openvinotoolkit/cvat/pull/3517>)
- Fixed task creating CLI parameter (<https://github.com/openvinotoolkit/cvat/pull/3519>) - Fixed task creating CLI parameter (<https://github.com/openvinotoolkit/cvat/pull/3519>)
### Security ### Security

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

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

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

Loading…
Cancel
Save