@arquimedes.co/eureka-forms 2.0.49 → 2.0.50

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.
package/dist/Form/Form.js CHANGED
@@ -102,7 +102,7 @@ function FormComponent(_a) {
102
102
  }
103
103
  }, [idFocusStep]);
104
104
  var onSubmit = useCallback(function (values) { return __awaiter(_this, void 0, void 0, function () {
105
- var token, state, newValues, deleteIds, _i, _a, idStep, _b, deleteIds_1, id, params, url, axios, resp, error_1;
105
+ var token, apikey, state, newValues, deleteIds, _i, _a, idStep, _b, deleteIds_1, id, params, url, axios, resp, error_1;
106
106
  var _c;
107
107
  return __generator(this, function (_d) {
108
108
  switch (_d.label) {
@@ -116,7 +116,8 @@ function FormComponent(_a) {
116
116
  token = _d.sent();
117
117
  _d.label = 2;
118
118
  case 2:
119
- if (!apiKey && !customSubmit && !customSubmitBtns)
119
+ apikey = internal ? form.apiKey : apiKey;
120
+ if (!apikey && !customSubmit && !customSubmitBtns)
120
121
  return [2 /*return*/];
121
122
  _d.label = 3;
122
123
  case 3:
@@ -145,7 +146,7 @@ function FormComponent(_a) {
145
146
  params.set('idOrganization', idOrganization !== null && idOrganization !== void 0 ? idOrganization : '');
146
147
  if (token)
147
148
  params.set('token', token);
148
- url = "/ticket/".concat(internal ? form.apiKey : apiKey);
149
+ url = "/ticket/".concat(apiKey);
149
150
  if (params.toString()) {
150
151
  url += "?".concat(params.toString());
151
152
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version": "2.0.49",
4
+ "version": "2.0.50",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",