diff --git a/CHANGELOG.md b/CHANGELOG.md index 80352fae..ff247905 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed multiple tasks moving () - Fixed task creating CLI parameter () ### Security diff --git a/cvat-ui/package-lock.json b/cvat-ui/package-lock.json index 2e0e5199..7ca95540 100644 --- a/cvat-ui/package-lock.json +++ b/cvat-ui/package-lock.json @@ -1,6 +1,6 @@ { "name": "cvat-ui", - "version": "1.21.2", + "version": "1.21.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/cvat-ui/package.json b/cvat-ui/package.json index a200543f..e88d38f6 100644 --- a/cvat-ui/package.json +++ b/cvat-ui/package.json @@ -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": { diff --git a/cvat-ui/src/components/move-task-modal/move-task-modal.tsx b/cvat-ui/src/components/move-task-modal/move-task-modal.tsx index fe356899..18a78d79 100644 --- a/cvat-ui/src/components/move-task-modal/move-task-modal.tsx +++ b/cvat-ui/src/components/move-task-modal/move-task-modal.tsx @@ -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 => {