Skip to content

Commit df3d5b1

Browse files
committed
tsc type issue
1 parent 55f96eb commit df3d5b1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

components/calculation/PopulationCalculation.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ export default function PopulationCalculation() {
134134
});
135135
setSubjectData(
136136
resolvedIds.map(idObj => {
137-
return { value: idObj.postedId, label: getPatientNameString(idObj.testCaseInfo.patient) };
137+
return idObj
138+
? { value: idObj.postedId, label: getPatientNameString(idObj.testCaseInfo.patient) }
139+
: { value: '', label: '' };
138140
})
139141
);
140142
setEnableEvaluateButton(true);

0 commit comments

Comments
 (0)