From 5dd971eaf577c1e0e92b40746a1063b5e84833c2 Mon Sep 17 00:00:00 2001 From: Jack Fragassi Date: Thu, 8 Apr 2021 06:50:23 -0700 Subject: [PATCH] fix: execution log crashes for logs with no uuid (#13998) * Fix execution log when no execution id * Use single quotes * Pretty --- superset-frontend/src/views/CRUD/alert/ExecutionLog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/views/CRUD/alert/ExecutionLog.tsx b/superset-frontend/src/views/CRUD/alert/ExecutionLog.tsx index b35f486df..7ea859075 100644 --- a/superset-frontend/src/views/CRUD/alert/ExecutionLog.tsx +++ b/superset-frontend/src/views/CRUD/alert/ExecutionLog.tsx @@ -100,7 +100,7 @@ function ExecutionLog({ addDangerToast, isReportEnabled }: ExecutionLogProps) { row: { original: { uuid: executionId }, }, - }: any) => executionId.slice(0, 6), + }: any) => (executionId ? executionId.slice(0, 6) : 'none'), accessor: 'uuid', Header: t('Execution ID'), size: 'xs',