uranusjr commented on a change in pull request #22272:
URL: https://github.com/apache/airflow/pull/22272#discussion_r829273171



##########
File path: airflow/www/static/js/dag.js
##########
@@ -135,12 +135,18 @@ export function callModal(t, d, extraLinks, tryNumbers, 
sd, drID, mi) {
   mapIndex = mi;
   $('#dag_run_id').text(drID);
   $('#task_id').text(t);
-  $('#map_index').text(mapIndex);
   $('#execution_date').text(formatDateTime(d));
   $('#taskInstanceModal').modal({});
   $('#taskInstanceModal').css('margin-top', '0');
   $('#extra_links').prev('hr').hide();
   $('#extra_links').empty().hide();
+  if (mi >= 0) {
+    $('#modal_map_index').show();
+    $('#map_index, #modal_map_index .value').text(mi);

Review comment:
       I think `#` also matches `name` attributes. (Don’t take my words, I’m 
not fluent in js by any means.)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to