From e6ade3340932f6788e94fed1467dab830c04cc9e Mon Sep 17 00:00:00 2001 From: Dmitry Kalinin Date: Wed, 24 Nov 2021 14:57:34 +0300 Subject: [PATCH] Fixed comments --- cvat-ui/src/components/project-page/project-page.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cvat-ui/src/components/project-page/project-page.tsx b/cvat-ui/src/components/project-page/project-page.tsx index 9c03e5ea45ae..56847ea46dfe 100644 --- a/cvat-ui/src/components/project-page/project-page.tsx +++ b/cvat-ui/src/components/project-page/project-page.tsx @@ -45,11 +45,10 @@ export default function ProjectPageComponent(): JSX.Element { const [project] = projects.filter((_project) => _project.id === id); const projectSubsets: Array = []; - if (tasks.length) { - for (const task of tasks) { - if (!projectSubsets.includes(task.instance.subset)) projectSubsets.push(task.instance.subset); - } + for (const task of tasks) { + if (!projectSubsets.includes(task.instance.subset)) projectSubsets.push(task.instance.subset); } + const deleteActivity = project && id in deletes ? deletes[id] : null; const onPageChange = useCallback( @@ -59,7 +58,7 @@ export default function ProjectPageComponent(): JSX.Element { page: p, })); }, - [dispatch, getProjectTasksAsync], + [], ); useEffect(() => {