diff --git a/src/ui/pages/container/Label-Studio/AllTaskLSF.jsx b/src/ui/pages/container/Label-Studio/AllTaskLSF.jsx index e5f53ca2..fedf4ecd 100644 --- a/src/ui/pages/container/Label-Studio/AllTaskLSF.jsx +++ b/src/ui/pages/container/Label-Studio/AllTaskLSF.jsx @@ -232,7 +232,9 @@ useEffect(() => { let ids = new Set(); let countLables = 0; temp.map((curr) => { - ids.add(curr.id); + if(curr.type !== "relation"){ + ids.add(curr.id); + } if(curr.type === "labels"){ countLables++; } @@ -303,7 +305,9 @@ useEffect(() => { let ids = new Set(); let countLables = 0; temp.map((curr) => { - ids.add(curr.id); + if(curr.type !== "relation"){ + ids.add(curr.id); + } if(curr.type === "labels"){ countLables++; } diff --git a/src/ui/pages/container/Label-Studio/LSF.jsx b/src/ui/pages/container/Label-Studio/LSF.jsx index 6bfcb16b..c240a139 100644 --- a/src/ui/pages/container/Label-Studio/LSF.jsx +++ b/src/ui/pages/container/Label-Studio/LSF.jsx @@ -496,7 +496,6 @@ const LabelStudioWrapper = ({ let countLables = 0; temp.map((curr) => { // console.log(curr); - ids.add(curr.id); if(curr.type !== "relation"){ ids.add(curr.id); }