Skip to content

Commit b2619eb

Browse files
committed
lint
1 parent 12e22a4 commit b2619eb

File tree

2 files changed

+48
-48
lines changed

2 files changed

+48
-48
lines changed

src/apps/review/src/lib/components/TableCheckpointSubmissions/TableCheckpointSubmissions.tsx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -166,30 +166,30 @@ export const TableCheckpointSubmissions: FC<Props> = (props: Props) => {
166166

167167
const aiReviewsColumn = useMemo<TableColumn<Screening> | undefined>(
168168
() => ({
169-
columnId: 'ai-reviews-table',
170-
isExpand: true,
171-
label: '',
172-
renderer: (data: Screening, allRows: Screening[]) => {
173-
const submissionPayload = {
174-
id: data.submissionId ?? '',
175-
virusScan: data.virusScan,
176-
} as Pick<BackendSubmission, 'id'|'virusScan'>
177-
178-
if (!submissionPayload.id) {
179-
return <></>
180-
}
169+
columnId: 'ai-reviews-table',
170+
isExpand: true,
171+
label: '',
172+
renderer: (data: Screening, allRows: Screening[]) => {
173+
const submissionPayload = {
174+
id: data.submissionId ?? '',
175+
virusScan: data.virusScan,
176+
} as Pick<BackendSubmission, 'id'|'virusScan'>
177+
178+
if (!submissionPayload.id) {
179+
return <></>
180+
}
181181

182-
return (
183-
<CollapsibleAiReviewsRow
184-
className={styles.aiReviews}
185-
aiReviewers={props.aiReviewers ?? []}
186-
submission={submissionPayload}
187-
defaultOpen={allRows ? !allRows.indexOf(data) : false}
188-
/>
189-
)
190-
},
191-
type: 'element',
192-
} as TableColumn<Screening>),
182+
return (
183+
<CollapsibleAiReviewsRow
184+
className={styles.aiReviews}
185+
aiReviewers={props.aiReviewers ?? []}
186+
submission={submissionPayload}
187+
defaultOpen={allRows ? !allRows.indexOf(data) : false}
188+
/>
189+
)
190+
},
191+
type: 'element',
192+
} as TableColumn<Screening>),
193193
[props.aiReviewers],
194194
)
195195

src/apps/review/src/lib/components/TableSubmissionScreening/TableSubmissionScreening.tsx

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -790,33 +790,33 @@ export const TableSubmissionScreening: FC<Props> = (props: Props) => {
790790

791791
const aiReviewersColumn = useMemo<TableColumn<Screening> | undefined>(
792792
() => ({
793-
columnId: 'ai-reviews-table',
794-
isExpand: true,
795-
label: '',
796-
renderer: (
797-
data: Screening,
798-
allRows: Screening[],
799-
) => {
800-
const submissionPayload = submissionMetaById.get(data.submissionId) ?? {
801-
id: data.submissionId ?? '',
802-
virusScan: data.virusScan,
803-
}
793+
columnId: 'ai-reviews-table',
794+
isExpand: true,
795+
label: '',
796+
renderer: (
797+
data: Screening,
798+
allRows: Screening[],
799+
) => {
800+
const submissionPayload = submissionMetaById.get(data.submissionId) ?? {
801+
id: data.submissionId ?? '',
802+
virusScan: data.virusScan,
803+
}
804804

805-
if (!submissionPayload?.id) {
806-
return <></>
807-
}
805+
if (!submissionPayload?.id) {
806+
return <></>
807+
}
808808

809-
return (
810-
<CollapsibleAiReviewsRow
811-
className={styles.aiReviews}
812-
aiReviewers={props.aiReviewers!}
813-
submission={submissionPayload as Pick<BackendSubmission, 'id'|'virusScan'>}
814-
defaultOpen={allRows ? !allRows.indexOf(data) : false}
815-
/>
816-
)
817-
},
818-
type: 'element',
819-
} as TableColumn<Screening>),
809+
return (
810+
<CollapsibleAiReviewsRow
811+
className={styles.aiReviews}
812+
aiReviewers={props.aiReviewers!}
813+
submission={submissionPayload as Pick<BackendSubmission, 'id'|'virusScan'>}
814+
defaultOpen={allRows ? !allRows.indexOf(data) : false}
815+
/>
816+
)
817+
},
818+
type: 'element',
819+
} as TableColumn<Screening>),
820820
[props.aiReviewers, submissionMetaById],
821821
)
822822

0 commit comments

Comments
 (0)