fix: fix cron trigger invocation logs status

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9348
GitOrigin-RevId: 72ba393e7f945260397b337cec489224f86230fc
This commit is contained in:
Daniele Cammareri 2023-05-30 16:50:45 +02:00 committed by hasura-bot
parent b3393cc344
commit 866ce9c3e7

View File

@ -158,6 +158,7 @@ const InvocationLogsTable: React.FC<Props> = props => {
});
}
});
const rowsFormatted = rows.map(r => {
let formattedRow: any = {};
Object.keys(r).forEach((col: string) => {
@ -165,7 +166,7 @@ const InvocationLogsTable: React.FC<Props> = props => {
});
formattedRow = {
...formattedRow,
status: <div>{getInvocationLogStatus(r.http_status)}</div>,
status: <div>{getInvocationLogStatus(r.http_status || r.status)}</div>,
created_at: r.created_at && (
<div>{convertDateTimeToLocale(r.created_at)}</div>
),