mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
feat: tables empty status.
This commit is contained in:
@@ -31,6 +31,8 @@ const billPaginationSelector = (state, props) => {
|
||||
return state.bills.views?.[viewId];
|
||||
};
|
||||
|
||||
const getBillsCurrentViewIdSelector = (state) => state.bills.currentViewId;
|
||||
|
||||
export const getBillTableQueryFactory = () =>
|
||||
createSelector(
|
||||
paginationLocationQuery,
|
||||
@@ -108,3 +110,12 @@ export const getVendorPayableBillsEntriesFactory = () =>
|
||||
}));
|
||||
},
|
||||
);
|
||||
|
||||
// Retreive the current bills view id.
|
||||
export const getBillsCurrentViewIdFactory = () =>
|
||||
createSelector(
|
||||
getBillsCurrentViewIdSelector,
|
||||
(currentViewId) => {
|
||||
return currentViewId;
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user