Skip to content

Commit 020c4b3

Browse files
committed
fix: handle nullable type_of_assessment_details with optional chaining
1 parent 471e015 commit 020c4b3

File tree

1 file changed

+1
-1
lines changed
  • app/src/views/CountryNsOverviewCapacity

1 file changed

+1
-1
lines changed

app/src/views/CountryNsOverviewCapacity/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export function Component() {
150150
<>
151151
<TextOutput
152152
label={strings.perTypeOfAssessmentLabel}
153-
value={perProcess.type_of_assessment_details.name}
153+
value={perProcess.type_of_assessment_details?.name}
154154
/>
155155
<TextOutput
156156
label={strings.perFocalPointLabel}

0 commit comments

Comments
 (0)