瀏覽代碼

HPCC-23813 Add/overwrite packagemap fails

Signed-off-by: Gordon Smith <gordonjsmith@gmail.com>
Gordon Smith 5 年之前
父節點
當前提交
9ba4393caf
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      esp/src/eclwatch/PackageMapQueryWidget.js

+ 3 - 3
esp/src/eclwatch/PackageMapQueryWidget.js

@@ -136,7 +136,7 @@ define([
                         Process: this.addPackageProcessSelect.get('value'),
                         Target: this.addPackageTargetSelect.get('value'),
                         Activate: this.addProcessMapActivate.get('checked'),
-                        Overwrite: this.addProcessMapOverWrite.get('checked'),
+                        OverWrite: this.addProcessMapOverWrite.get('checked'),
                         DaliIp: this.addProcessMapDaliIp.get('value')
                     }
                 }).then(function (response) {
@@ -146,8 +146,8 @@ define([
                             context._onCancel();
                         }
                     } else {
-                        this._onCancel();
-                        this.showErrors(response.Exceptions.Exception[0].Message);
+                        context._onCancel();
+                        context.showErrors(response.Exceptions.Exception[0].Message);
                     }
                 });
             }