kwikid-forms 0.3.11 → 0.3.12

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.
@@ -5408,20 +5408,23 @@
5408
5408
  KwikIDFormViewComponent.prototype.taskApiCall = function (action, object) {
5409
5409
  return __awaiter(this, void 0, void 0, function () {
5410
5410
  var apiConfig, response;
5411
- var _h;
5412
- return __generator(this, function (_j) {
5413
- switch (_j.label) {
5411
+ var _h, _j;
5412
+ return __generator(this, function (_k) {
5413
+ switch (_k.label) {
5414
5414
  case 0:
5415
5415
  this.showApiLoader();
5416
5416
  apiConfig = this.formConfig.apis[action.props.formApiKey];
5417
5417
  return [4 /*yield*/, this.handleTaskApiCall(apiConfig)];
5418
5418
  case 1:
5419
- response = _j.sent();
5419
+ response = _k.sent();
5420
5420
  apiConfig = response.api;
5421
5421
  this.formConfig = kwikidToolkit.setValueToObjectPath(this.formConfig, "apis." + action.props.formApiKey, apiConfig);
5422
5422
  this.taskData = kwikidToolkit.mergeObjects(this.taskData, (_h = {},
5423
5423
  _h[action.props.formApiKey] = apiConfig.response.value,
5424
5424
  _h));
5425
+ this.formData = kwikidToolkit.mergeObjects(this.formData, (_j = {},
5426
+ _j[action.props.formApiKey] = apiConfig.response.value,
5427
+ _j));
5425
5428
  this.waitingForChanges = false;
5426
5429
  this.hideApiLoader();
5427
5430
  return [2 /*return*/];