@egova/egova-api 1.0.215 → 1.0.216

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60039,6 +60039,7 @@ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce
60039
60039
 
60040
60040
 
60041
60041
 
60042
+
60042
60043
  var environment_variable_modal_extends = undefined && undefined.__extends || function () {
60043
60044
  var _extendStatics = function extendStatics(d, b) {
60044
60045
  _extendStatics = Object.setPrototypeOf || {
@@ -60302,7 +60303,10 @@ function (_super) {
60302
60303
 
60303
60304
  EnvironmentVariableModal.prototype.getVariableList = function () {
60304
60305
  return environment_variable_modal_awaiter(this, void 0, void 0, function () {
60305
- var res;
60306
+ var res, arr;
60307
+
60308
+ var _this = this;
60309
+
60306
60310
  return environment_variable_modal_generator(this, function (_a) {
60307
60311
  switch (_a.label) {
60308
60312
  case 0:
@@ -60326,7 +60330,10 @@ function (_super) {
60326
60330
  }
60327
60331
 
60328
60332
  if (this.currentItem && this.currentItem.id) {
60329
- this.onSelectItem(this.currentItem);
60333
+ arr = this.varList.filter(function (item) {
60334
+ return item.id === _this.currentItem.id;
60335
+ });
60336
+ this.onSelectItem(arr[0] || this.varList[0]);
60330
60337
  } else {
60331
60338
  this.varList.length && this.onSelectItem(this.varList[0]);
60332
60339
  }
@@ -63187,7 +63194,10 @@ function (_super) {
63187
63194
 
63188
63195
  SecurityModalComponent.prototype.getSecurityList = function () {
63189
63196
  return security_modal_awaiter(this, void 0, void 0, function () {
63190
- var res, tempList;
63197
+ var res, tempList, arr;
63198
+
63199
+ var _this = this;
63200
+
63191
63201
  return security_modal_generator(this, function (_a) {
63192
63202
  switch (_a.label) {
63193
63203
  case 0:
@@ -63221,7 +63231,10 @@ function (_super) {
63221
63231
  }
63222
63232
 
63223
63233
  if (this.currentSecurityItem && this.currentSecurityItem.id) {
63224
- this.onSelectSecurityItem(this.currentSecurityItem);
63234
+ arr = this.securityList.filter(function (item) {
63235
+ return item.id === _this.currentSecurityItem.id;
63236
+ });
63237
+ this.onSelectSecurityItem(arr[0] || this.securityList[0]);
63225
63238
  } else {
63226
63239
  this.securityList.length && this.onSelectSecurityItem(this.securityList[0]);
63227
63240
  }
package/dist/index.umd.js CHANGED
@@ -60048,6 +60048,7 @@ var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce
60048
60048
 
60049
60049
 
60050
60050
 
60051
+
60051
60052
  var environment_variable_modal_extends = undefined && undefined.__extends || function () {
60052
60053
  var _extendStatics = function extendStatics(d, b) {
60053
60054
  _extendStatics = Object.setPrototypeOf || {
@@ -60311,7 +60312,10 @@ function (_super) {
60311
60312
 
60312
60313
  EnvironmentVariableModal.prototype.getVariableList = function () {
60313
60314
  return environment_variable_modal_awaiter(this, void 0, void 0, function () {
60314
- var res;
60315
+ var res, arr;
60316
+
60317
+ var _this = this;
60318
+
60315
60319
  return environment_variable_modal_generator(this, function (_a) {
60316
60320
  switch (_a.label) {
60317
60321
  case 0:
@@ -60335,7 +60339,10 @@ function (_super) {
60335
60339
  }
60336
60340
 
60337
60341
  if (this.currentItem && this.currentItem.id) {
60338
- this.onSelectItem(this.currentItem);
60342
+ arr = this.varList.filter(function (item) {
60343
+ return item.id === _this.currentItem.id;
60344
+ });
60345
+ this.onSelectItem(arr[0] || this.varList[0]);
60339
60346
  } else {
60340
60347
  this.varList.length && this.onSelectItem(this.varList[0]);
60341
60348
  }
@@ -63196,7 +63203,10 @@ function (_super) {
63196
63203
 
63197
63204
  SecurityModalComponent.prototype.getSecurityList = function () {
63198
63205
  return security_modal_awaiter(this, void 0, void 0, function () {
63199
- var res, tempList;
63206
+ var res, tempList, arr;
63207
+
63208
+ var _this = this;
63209
+
63200
63210
  return security_modal_generator(this, function (_a) {
63201
63211
  switch (_a.label) {
63202
63212
  case 0:
@@ -63230,7 +63240,10 @@ function (_super) {
63230
63240
  }
63231
63241
 
63232
63242
  if (this.currentSecurityItem && this.currentSecurityItem.id) {
63233
- this.onSelectSecurityItem(this.currentSecurityItem);
63243
+ arr = this.securityList.filter(function (item) {
63244
+ return item.id === _this.currentSecurityItem.id;
63245
+ });
63246
+ this.onSelectSecurityItem(arr[0] || this.securityList[0]);
63234
63247
  } else {
63235
63248
  this.securityList.length && this.onSelectSecurityItem(this.securityList[0]);
63236
63249
  }