wt-front-shared 1.0.82 → 1.0.83

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.
@@ -1888,7 +1888,7 @@ class BaseAPIService {
1888
1888
  );
1889
1889
  }*/
1890
1890
  doRequest(paramsConfig, endPoint) {
1891
- const itemId = paramsConfig?.id || paramsConfig?.itemId;
1891
+ const itemId = paramsConfig?.id || paramsConfig?.itemId || paramsConfig?.where?.slug;
1892
1892
  const formId = paramsConfig?.formId;
1893
1893
  const request = this.api.createRequest(paramsConfig, endPoint);
1894
1894
  const requestUrl = request.url;
@@ -2298,9 +2298,11 @@ function getExistId(ids, checkIds) {
2298
2298
 
2299
2299
  const getRequestsState = createFeatureSelector(REQUESTS_FEATURE_KEY);
2300
2300
  const getRequestInfo = (endpointUrl, method, itemId, secondEndPointUrl) => createSelector(getRequestsState, (state) => {
2301
- return state?.list?.find(item => item.endPointUrl === endpointUrl
2302
- && (!itemId || item.itemId === itemId)
2303
- && (!secondEndPointUrl || item.secondEndPointUrl === secondEndPointUrl));
2301
+ return state?.list?.find(item => {
2302
+ return item.endPointUrl === endpointUrl
2303
+ && (!itemId || item.itemId === itemId)
2304
+ && (!secondEndPointUrl || item.secondEndPointUrl === secondEndPointUrl);
2305
+ });
2304
2306
  });
2305
2307
  const requestsQuery = {
2306
2308
  getRequestInfo