From a068d11c39676801570b5edbadc62377adfbdcbb Mon Sep 17 00:00:00 2001 From: Jiheng Li <136323923+JihengLi@users.noreply.github.com> Date: Mon, 15 Apr 2024 21:52:29 -0500 Subject: [PATCH] Henry li/solve the runtime error of the eye icon (#471) * Add a column for the judgement state -- whether a team has been judged * Add the search function to the drop down menu * typo change * delete useless import in components/judges/schedule.tsx * Solved the runtime error of eye icon in manage applications in organizer --- components/Organizer/ApplicantsTab/ApplicantsTab.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/components/Organizer/ApplicantsTab/ApplicantsTab.tsx b/components/Organizer/ApplicantsTab/ApplicantsTab.tsx index 1ec1d4e0..1fd0b0de 100644 --- a/components/Organizer/ApplicantsTab/ApplicantsTab.tsx +++ b/components/Organizer/ApplicantsTab/ApplicantsTab.tsx @@ -415,10 +415,13 @@ export const ApplicantsTab = () => { visible={isAppModalOpen} onOk={handleAppCloseModal} onCancel={handleAppCloseModal}> - {selectedApplicant && - Object.entries(selectedApplicant.application!) + {selectedApplicant?.application ? ( + Object.entries(selectedApplicant.application) .filter(([field, _]) => field in APPLICATION_KEY_MAP) - .map(createSingleApplicantEntry)} + .map(createSingleApplicantEntry) + ) : ( +

Application details are not available.

+ )} )} {isCheckinModalOpen && (