未验证 提交 8e33283c 编写于 作者: D Dmitry Kalinin 提交者: GitHub

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

* Fixed issue

* Added CHANGELOG, increased version
上级 83d086d2
......@@ -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
......
{
"name": "cvat-ui",
"version": "1.21.2",
"version": "1.21.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
{
"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 => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册