Prechádzať zdrojové kódy

Merge pull request #11562 from miguelvazq/HPCC-20274

HPCC-20274 Despray only showing single dropzone

Reviewed-by: Gordon Smith
Merged-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 6 rokov pred
rodič
commit
b7423af066
1 zmenil súbory, kde vykonal 7 pridanie a 5 odobranie
  1. 7 5
      esp/src/eclwatch/TargetSelectClass.js

+ 7 - 5
esp/src/eclwatch/TargetSelectClass.js

@@ -284,11 +284,13 @@ define([
                 if (lang.exists("TpDropZoneQueryResponse.TpDropZones.TpDropZone", response)) {
                     var targetData = response.TpDropZoneQueryResponse.TpDropZones.TpDropZone;
                     for (var i = 0; i < targetData.length; ++i) {
-                        context.options.push({
-                            label: targetData[i].Name,
-                            value: targetData[i].Name,
-                            machine: targetData[i].TpMachines.TpMachine[0]
-                        });
+                        if (lang.exists("TpMachines.TpMachine", targetData[i])) {
+                            context.options.push({
+                                label: targetData[i].Name,
+                                value: targetData[i].Name,
+                                machine: targetData[i].TpMachines.TpMachine[0]
+                            });
+                        }
                     }
                     context._postLoad();
                 }