You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bb...@apache.org on 2022/04/06 14:01:12 UTC

[airflow] branch main updated: remove json parse for gantt chart (#22780)

This is an automated email from the ASF dual-hosted git repository.

bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new cfe7c3f456 remove json parse for gantt chart (#22780)
cfe7c3f456 is described below

commit cfe7c3f456c6a52a807b2720c07df48336ea8c70
Author: Brent Bovenzi <br...@gmail.com>
AuthorDate: Wed Apr 6 09:01:06 2022 -0500

    remove json parse for gantt chart (#22780)
---
 airflow/www/templates/airflow/gantt.html | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/airflow/www/templates/airflow/gantt.html b/airflow/www/templates/airflow/gantt.html
index c9b92ceddb..9e5606c331 100644
--- a/airflow/www/templates/airflow/gantt.html
+++ b/airflow/www/templates/airflow/gantt.html
@@ -76,9 +76,8 @@
   {{ super() }}
   <script src="{{ url_for_asset('d3.min.js') }}"></script>
   <script src="{{ url_for_asset('d3-tip.js') }}"></script>
-  <script src="{{ url_for_asset('gantt.js') }}"></script>
   <script>
-    // Loading data via <meta> wasn't loading extra_links in a task
-    const data = JSON.parse('{{ data|tojson }}');
+    const data = {{ data|tojson }};
   </script>
+  <script src="{{ url_for_asset('gantt.js') }}"></script>
 {% endblock %}