From 4b06cb423971bdd0be5658e3a4905e993b6b926a Mon Sep 17 00:00:00 2001 From: kartikvirendrar Date: Mon, 1 Apr 2024 17:36:21 +0530 Subject: [PATCH] minor fix in update LSF --- src/ui/pages/container/Label-Studio/AllTaskLSF.jsx | 8 ++++++-- src/ui/pages/container/Label-Studio/LSF.jsx | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) 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); }