console: show cross icon when status is null in invocation logs tab

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7940
GitOrigin-RevId: 5fde0b42a85f061c5d443445a914f4ce6b42b823
This commit is contained in:
Daniele Cammareri 2023-02-13 10:12:26 +01:00 committed by hasura-bot
parent 22d515dcb6
commit eba7d44d02

View File

@ -28,5 +28,5 @@ export const getEventDeliveryIcon = (delivered: boolean) => {
};
export const getInvocationLogStatus = (status: number) => {
return status < 300 ? <CheckIcon /> : <CrossIcon />;
return status && status < 300 ? <CheckIcon /> : <CrossIcon />;
};