@smartsoft001/crud-shell-angular 2.102.0 → 2.104.0
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.
|
@@ -280,12 +280,12 @@ const deleteFailure = function (entity, id, error) {
|
|
|
280
280
|
const getCrudState = (entity) => createFeatureSelector(entity);
|
|
281
281
|
const getCrudSelected = (entity) => createSelector(getCrudState(entity), (state) => state.selected);
|
|
282
282
|
const getCrudMultiSelected = (entity) => createSelector(getCrudState(entity), (state) => state.multiSelected);
|
|
283
|
-
const getCrudList = (entity) => createSelector(getCrudState(entity), (state) => state
|
|
284
|
-
const getCrudTotalCount = (entity) => createSelector(getCrudState(entity), (state) => state
|
|
285
|
-
const getCrudLinks = (entity) => createSelector(getCrudState(entity), (state) => state
|
|
286
|
-
const getCrudLoaded = (entity) => createSelector(getCrudState(entity), (state) => state
|
|
283
|
+
const getCrudList = (entity) => createSelector(getCrudState(entity), (state) => state?.list);
|
|
284
|
+
const getCrudTotalCount = (entity) => createSelector(getCrudState(entity), (state) => state?.totalCount);
|
|
285
|
+
const getCrudLinks = (entity) => createSelector(getCrudState(entity), (state) => state?.links);
|
|
286
|
+
const getCrudLoaded = (entity) => createSelector(getCrudState(entity), (state) => state?.loaded);
|
|
287
287
|
const getCrudFilter = (entity) => createSelector(getCrudState(entity), (state) => state?.filter);
|
|
288
|
-
const getCrudError = (entity) => createSelector(getCrudState(entity), (state) => state
|
|
288
|
+
const getCrudError = (entity) => createSelector(getCrudState(entity), (state) => state?.error);
|
|
289
289
|
|
|
290
290
|
class CrudFacade {
|
|
291
291
|
store;
|
|
@@ -1863,7 +1863,7 @@ const crudReducer = (state, action, entity) => {
|
|
|
1863
1863
|
...state,
|
|
1864
1864
|
loaded: true,
|
|
1865
1865
|
list,
|
|
1866
|
-
totalCount: action
|
|
1866
|
+
totalCount: action?.result?.totalCount,
|
|
1867
1867
|
links: action.result.links,
|
|
1868
1868
|
error: null,
|
|
1869
1869
|
};
|