mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
fix bugs.
This commit is contained in:
@@ -11,7 +11,7 @@ export const pickItemsFromIds = (items, ids) => {
|
||||
export const getCurrentPageResults = (items, pages, pageNumber) => {
|
||||
const currentPage = pages[pageNumber]
|
||||
return typeof currentPage == 'undefined' ?
|
||||
[] : Object.values(pick(items || [], currentPage.ids));
|
||||
[] : pickItemsFromIds(items, currentPage.ids);
|
||||
}
|
||||
|
||||
export const getCurrentTotalResultsCount = (pagination, name) => {
|
||||
|
||||
Reference in New Issue
Block a user