From 463900ce89bc5b205aa4bdf04da2325ea042c8f9 Mon Sep 17 00:00:00 2001 From: Daniel Standish <15932138+dstandish@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:54:04 -0700 Subject: [PATCH] Fix non-hidden cumulative chart on duration view (#26716) When you first load the page, cumulative is unchecked, but the chart itself is unhidden and appears below the non-cumulative chart. Adding this line ensures that the initial value of the checkbox is respected. (cherry picked from commit f105343759a30fbab6a0a95617e9df3493b1ed3e) --- airflow/www/static/js/duration_chart.js | 1 + 1 file changed, 1 insertion(+) diff --git a/airflow/www/static/js/duration_chart.js b/airflow/www/static/js/duration_chart.js index f5f7376c53435..7c3d7cacd01fa 100644 --- a/airflow/www/static/js/duration_chart.js +++ b/airflow/www/static/js/duration_chart.js @@ -29,5 +29,6 @@ function handleCheck() { } } $(document).on('chartload', handleCheck); +$(document).ready(handleCheck); $('#isCumulative').on('click', handleCheck);