diff options
author | vnugent <public@vaughnnugent.com> | 2023-12-16 02:40:03 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-12-16 02:40:03 -0500 |
commit | 0d25abab798c005266a1c0b4eeba957d232d4328 (patch) | |
tree | 427bd36e33fcd4960e3a2bc7d73b77dc7779b214 /lib/admin/src/ordering | |
parent | 4b8ae76132d2342f40cec703b3d5145ea075c451 (diff) |
move blog admin state to pinia store plugin
Diffstat (limited to 'lib/admin/src/ordering')
-rw-r--r-- | lib/admin/src/ordering/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/admin/src/ordering/index.ts b/lib/admin/src/ordering/index.ts index a2f266f..c252573 100644 --- a/lib/admin/src/ordering/index.ts +++ b/lib/admin/src/ordering/index.ts @@ -16,7 +16,7 @@ import { MaybeRefOrGetter, computed } from 'vue'; import { useOffsetPagination } from '@vueuse/core'; import { filter, includes, isEmpty, orderBy, slice, toLower } from 'lodash-es'; -import { CanPaginate, NamedBlogEntity, SortedFilteredPaged } from '../types'; +import type { CanPaginate, NamedBlogEntity, SortedFilteredPaged } from '../types'; /** * Allows filtering, sorting, and paginating a collection of blog items @@ -26,7 +26,7 @@ import { CanPaginate, NamedBlogEntity, SortedFilteredPaged } from '../types'; export const useFilteredPages = <T extends NamedBlogEntity>(pageable: CanPaginate<T>, pageSize: MaybeRefOrGetter<number>): SortedFilteredPaged<T> => { //Get filterable items, and the query state to filter by - const { sort, search } = pageable.getQuery(); + const { sort, search } = pageable; const filtered = computed<T[]>(() => { |