Skip to content

Commit eb981a9

Browse files
committed
fix typecheck
1 parent 729423c commit eb981a9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/views/domains-page/helpers/get-all-domains.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ export const getAllDomains = async () => {
5454
.filter((res) => res.rejection)
5555
.map((res) => ({
5656
clusterName: res.clusterName,
57-
httpStatus: res.rejection?.reason.httpStatusCode,
57+
httpStatus:
58+
res.rejection && 'reason' in res.rejection
59+
? res.rejection.reason.httpStatusCode
60+
: undefined,
5861
})),
5962
};
6063
};

0 commit comments

Comments
 (0)