We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba5d0d6 commit 4803f36Copy full SHA for 4803f36
1 file changed
client/src/pages/automation/workflow-executions/components/WorkflowExecutionsTable.tsx
@@ -65,14 +65,15 @@ const WorkflowExecutionsTable = ({data}: {data: WorkflowExecution[]}) => {
65
header: 'Start date',
66
}),
67
columnHelper.accessor((row) => row.job, {
68
- cell: (info) => (
69
- <>
70
- {info.getValue()?.endDate &&
71
- `${info.getValue()?.endDate?.toLocaleDateString()} ${info
72
- .getValue()
73
- ?.endDate?.toLocaleTimeString()}`}
74
- </>
75
- ),
+ cell: (info) => {
+ const {endDate} = info.getValue();
+
+ if (!endDate) {
+ return <></>;
+ }
+ return <>{`${endDate.toLocaleDateString()} ${endDate.toLocaleTimeString()}`}</>;
76
+ },
77
header: 'End date',
78
79
0 commit comments