wt-front-shared 19.0.14 → 19.0.15
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.
|
@@ -2364,6 +2364,7 @@ const initialState$f = {
|
|
|
2364
2364
|
const _requestsStateReducer = createReducer(initialState$f, on(CreateRequestListener, (state, action) => {
|
|
2365
2365
|
const { endPointUrl, itemId, method, secondEndPointUrl, subRouting } = action.payload;
|
|
2366
2366
|
const { id } = getRequestId(endPointUrl, action.payload?.itemId, method, secondEndPointUrl, subRouting);
|
|
2367
|
+
console.log('CreateRequestListener', id);
|
|
2367
2368
|
return {
|
|
2368
2369
|
...ReducerService.upsertOne(state, {
|
|
2369
2370
|
id,
|
|
@@ -2407,11 +2408,16 @@ const _requestsStateReducer = createReducer(initialState$f, on(CreateRequestList
|
|
|
2407
2408
|
};
|
|
2408
2409
|
}), on(UpdateRequestData, (state, action) => {
|
|
2409
2410
|
const { endPointUrl, secondEndPointUrl, status, error, itemId, method, data, formId, url, subRouting } = action.payload;
|
|
2411
|
+
console.log('UpdateRequestData.state', state);
|
|
2412
|
+
console.log('UpdateRequestData.payload', action.payload);
|
|
2410
2413
|
const ids = getRequestIdVariants(endPointUrl, action.payload?.itemId, method, secondEndPointUrl, subRouting);
|
|
2414
|
+
console.log('ids', ids);
|
|
2411
2415
|
if (formId) {
|
|
2412
2416
|
ids.push(formId);
|
|
2413
2417
|
}
|
|
2418
|
+
// static-data/infos/no-subRouting/_get_582-zima-u-morya-3
|
|
2414
2419
|
let existsIds = getExistIds(state.ids, ids);
|
|
2420
|
+
console.log('existsIds', existsIds);
|
|
2415
2421
|
if (existsIds?.length) {
|
|
2416
2422
|
return {
|
|
2417
2423
|
...ReducerService.upsertMeny(state, existsIds.map(existId => ({
|
|
@@ -2447,6 +2453,8 @@ function getRequestIdVariants(endPoint, itemIdIn, method, secondEndPointUrl, sub
|
|
|
2447
2453
|
return resultList;
|
|
2448
2454
|
}
|
|
2449
2455
|
function getExistIds(ids, checkIds) {
|
|
2456
|
+
console.log('getExistIds.ids', ids);
|
|
2457
|
+
console.log('getExistIds.checkIds', checkIds);
|
|
2450
2458
|
return ids.filter(id => checkIds.includes(id));
|
|
2451
2459
|
}
|
|
2452
2460
|
|