We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dd2697 commit 6fcd7f8Copy full SHA for 6fcd7f8
src/components/domain/AppealsTable/index.tsx
@@ -125,7 +125,7 @@ function AppealsTable(props: Props) {
125
createStringColumn<AppealListItem, string>(
126
'dtype',
127
strings.appealsTableDisastertype,
128
- (item) => item.dtype.name,
+ (item) => item.dtype?.name,
129
{ sortable: true },
130
),
131
createNumberColumn<AppealListItem, string>(
@@ -152,7 +152,7 @@ function AppealsTable(props: Props) {
152
createLinkColumn<AppealListItem, string>(
153
'country',
154
strings.appealsTableCountry,
155
- (item) => item.country.name,
+ (item) => item.country?.name,
156
(item) => ({
157
to: 'countriesLayout',
158
urlParams: { countryId: item.country.id },
0 commit comments