@arquimedes.co/eureka-forms 2.0.50 → 2.0.51
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 +4 -4
- package/package.json +1 -1
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,
|
|
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,8 +116,8 @@ function FormComponent(_a) {
|
|
|
116
116
|
token = _d.sent();
|
|
117
117
|
_d.label = 2;
|
|
118
118
|
case 2:
|
|
119
|
-
|
|
120
|
-
if (!
|
|
119
|
+
ApiKey = internal ? form.apiKey : apiKey;
|
|
120
|
+
if (!ApiKey && !customSubmit && !customSubmitBtns)
|
|
121
121
|
return [2 /*return*/];
|
|
122
122
|
_d.label = 3;
|
|
123
123
|
case 3:
|
|
@@ -146,7 +146,7 @@ function FormComponent(_a) {
|
|
|
146
146
|
params.set('idOrganization', idOrganization !== null && idOrganization !== void 0 ? idOrganization : '');
|
|
147
147
|
if (token)
|
|
148
148
|
params.set('token', token);
|
|
149
|
-
url = "/ticket/".concat(
|
|
149
|
+
url = "/ticket/".concat(ApiKey);
|
|
150
150
|
if (params.toString()) {
|
|
151
151
|
url += "?".concat(params.toString());
|
|
152
152
|
}
|