We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 729423c commit eb981a9Copy full SHA for eb981a9
1 file changed
src/views/domains-page/helpers/get-all-domains.ts
@@ -54,7 +54,10 @@ export const getAllDomains = async () => {
54
.filter((res) => res.rejection)
55
.map((res) => ({
56
clusterName: res.clusterName,
57
- httpStatus: res.rejection?.reason.httpStatusCode,
+ httpStatus:
58
+ res.rejection && 'reason' in res.rejection
59
+ ? res.rejection.reason.httpStatusCode
60
+ : undefined,
61
})),
62
};
63
0 commit comments