File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/apps/review/src/lib/components Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ export const SubmissionHistoryModal: FC<SubmissionHistoryModalProps> = (props: S
100100 [ props . submissions ] ,
101101 )
102102
103- const aiReviewersCount = useMemo ( ( ) => ( props . aiReviewers ?. length ?? 0 ) + 1 , [ props . aiReviewers ] )
103+ const aiReviewers = useMemo ( ( ) => props . aiReviewers ?? [ ] , [ props . aiReviewers ] )
104+ const aiReviewersCount = useMemo ( ( ) => ( aiReviewers . length ?? 0 ) + 1 , [ aiReviewers ] )
104105
105106 const [ toggledRows , setToggledRows ] = useState ( new Set < string > ( ) )
106107
@@ -279,7 +280,7 @@ export const SubmissionHistoryModal: FC<SubmissionHistoryModalProps> = (props: S
279280 < td className = { styles . aiReviewersTableRow } colSpan = { 4 } >
280281 < div className = { styles . aiReviewersTable } >
281282 < AiReviewsTable
282- reviewers = { props . aiReviewers ?? [ ] }
283+ reviewers = { aiReviewers }
283284 submission = { submission }
284285 />
285286 </ div >
Original file line number Diff line number Diff line change @@ -809,7 +809,7 @@ export const TableSubmissionScreening: FC<Props> = (props: Props) => {
809809 [ primarySubmissionInfos ] ,
810810 )
811811
812- const fitleredScreenings = useMemo ( ( ) => (
812+ const filteredScreenings = useMemo ( ( ) => (
813813 props . screenings
814814 . filter ( screening => latestSubmissionIds . has ( screening . submissionId ) )
815815 ) , [ props . screenings , latestSubmissionIds ] )
@@ -1177,7 +1177,7 @@ export const TableSubmissionScreening: FC<Props> = (props: Props) => {
11771177 ) : (
11781178 < Table
11791179 columns = { columns }
1180- data = { fitleredScreenings }
1180+ data = { filteredScreenings }
11811181 disableSorting
11821182 onToggleSort = { _ . noop }
11831183 removeDefaultSort
You can’t perform that action at this time.
0 commit comments