From 1d875a45994540adef23ad6f638d78c9945ef873 Mon Sep 17 00:00:00 2001 From: Brent Bovenzi Date: Tue, 26 Apr 2022 12:45:58 -0400 Subject: [PATCH] Handle undefined data interval in grid runs (#23265) --- .../www/static/js/tree/dagRuns/Tooltip.jsx | 4 +-- .../js/tree/details/content/dagRun/index.jsx | 29 ++++++++++--------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/airflow/www/static/js/tree/dagRuns/Tooltip.jsx b/airflow/www/static/js/tree/dagRuns/Tooltip.jsx index c15e6e53515e9..6c00b66bf5eb1 100644 --- a/airflow/www/static/js/tree/dagRuns/Tooltip.jsx +++ b/airflow/www/static/js/tree/dagRuns/Tooltip.jsx @@ -25,7 +25,7 @@ import Time from '../Time'; const DagRunTooltip = ({ dagRun: { - state, duration, dataIntervalEnd, + state, duration, dataIntervalStart, executionDate, }, }) => ( @@ -37,7 +37,7 @@ const DagRunTooltip = ({ Run: {' '} - Duration: diff --git a/airflow/www/static/js/tree/details/content/dagRun/index.jsx b/airflow/www/static/js/tree/details/content/dagRun/index.jsx index 363bdeddfd6bc..1816385c5891c 100644 --- a/airflow/www/static/js/tree/details/content/dagRun/index.jsx +++ b/airflow/www/static/js/tree/details/content/dagRun/index.jsx @@ -126,19 +126,22 @@ const DagRun = ({ runId }) => { )} -
- Data Interval: - - Start: - {' '} - - - End: - {' '} - - + {dataIntervalStart && dataIntervalEnd && ( + <> +
+ Data Interval: + + Start: + {' '} + + + End: + {' '} + + + )}
); };