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

pierrejeambrun pushed a commit to branch v2-5-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 867e2a8394193e1e6de5d998d2c872eef5fb5656
Author: Vladimir Mikhaylov <[email protected]>
AuthorDate: Thu Mar 9 18:13:40 2023 +0000

    Fix tags selection in DAGs UI (#29944)
    
    (cherry picked from commit 8691c4f98c6cd6d96e87737158a9be0f6a04b9ad)
---
 airflow/www/static/js/dags.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/airflow/www/static/js/dags.js b/airflow/www/static/js/dags.js
index 97c3b2f12c..38a2e0c43e 100644
--- a/airflow/www/static/js/dags.js
+++ b/airflow/www/static/js/dags.js
@@ -61,9 +61,10 @@ $('#tags_filter').select2({
 $('#tags_filter').on('change', (e) => {
   e.preventDefault();
   const query = new URLSearchParams(window.location.search);
-  if (e.val.length) {
+  const tags = $(e.target).select2('val');
+  if (tags.length) {
     if (query.has('tags')) query.delete('tags');
-    e.val.forEach((value) => {
+    tags.forEach((value) => {
       query.append('tags', value);
     });
   } else {

Reply via email to