Skip to content

Commit

Permalink
minor fix in update LSF
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikvirendrar committed Apr 1, 2024
1 parent de7e54c commit 4b06cb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/ui/pages/container/Label-Studio/AllTaskLSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
Expand Down Expand Up @@ -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++;
}
Expand Down
1 change: 0 additions & 1 deletion src/ui/pages/container/Label-Studio/LSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4b06cb4

Please sign in to comment.