@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 +4 -3
- 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, 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
|
-
|
|
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(
|
|
149
|
+
url = "/ticket/".concat(apiKey);
|
|
149
150
|
if (params.toString()) {
|
|
150
151
|
url += "?".concat(params.toString());
|
|
151
152
|
}
|