Skip to content

Commit

Permalink
Revert "Revert "resolved cvat-ai#7443""
Browse files Browse the repository at this point in the history
This reverts commit 07142de.
  • Loading branch information
thekavikumar committed Mar 21, 2024
1 parent 07142de commit 7121045
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ export default function LabelsListComponent(): JSX.Element {
const ready = useSelector((state: CombinedState) => state.annotation.canvas.ready);
const activeControl = useSelector((state: CombinedState) => state.annotation.canvas.activeControl);

let frames = issues.map((issue: Issue): number => issue.frame).sort((a: number, b: number) => +a - +b);
let frames = issues
.filter((issue: Issue) => !issue.resolved) // Filter out the resolved issues
.map((issue: Issue) => issue.frame) // Extract frames from remaining issues
.sort((a: number, b: number) => +a - +b); // Sort the frames

if (showGroundTruth) {
const conflictFrames = conflicts
.map((conflict): number => conflict.frame).sort((a: number, b: number) => +a - +b);
Expand Down

0 comments on commit 7121045

Please sign in to comment.