Skip to content

Commit

Permalink
Simplify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiltsov-max committed Nov 28, 2024
1 parent 23553fc commit f732769
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,9 @@ function AllocationTable(props: Readonly<Props>): JSX.Element {
key: frame,
frame,
name: gtJobMeta.frames[
(validationLayout.mode === ValidationMode.GT) ? frame : index
// The generic formula was here:
// https://github.com/cvat-ai/cvat/blob/45e1b4be5f40667d254cb869395f4cfa7dafc3ad/cvat-ui/ ...
// ... /src/components/quality-control/task-quality/allocation-table.tsx#L43
//
// Shortly:
// - gt job meta starts from the 0 task frame;
// - honeypot gt job meta starts from the job start frame;
(validationLayout.mode === ValidationMode.GT) ? frame : index
]?.name ?? gtJobMeta.frames[0].name,
active: !disabledFrames.includes(frame),
}));
Expand Down

0 comments on commit f732769

Please sign in to comment.