Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ActiveChooN committed Nov 24, 2021
1 parent d8bde56 commit e6ade33
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cvat-ui/src/components/project-page/project-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ export default function ProjectPageComponent(): JSX.Element {

const [project] = projects.filter((_project) => _project.id === id);
const projectSubsets: Array<string> = [];
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(
Expand All @@ -59,7 +58,7 @@ export default function ProjectPageComponent(): JSX.Element {
page: p,
}));
},
[dispatch, getProjectTasksAsync],
[],
);

useEffect(() => {
Expand Down

0 comments on commit e6ade33

Please sign in to comment.