fix: list with params error
This commit is contained in:
@@ -2,6 +2,7 @@ import type { DataTableLoader } from '~/components/pub/base/data-table/type'
|
||||
import type { PaginationMeta } from '~/components/pub/custom-ui/pagination/pagination.type'
|
||||
import { refDebounced, useUrlSearchParams } from '@vueuse/core'
|
||||
import * as z from 'zod'
|
||||
import { is } from "date-fns/locale"
|
||||
|
||||
// Default query schema yang bisa digunakan semua list
|
||||
export const defaultQuerySchema = z.object({
|
||||
@@ -75,6 +76,8 @@ export function usePaginatedList<T = any>(options: UsePaginatedListOptions<T>) {
|
||||
|
||||
// Functions
|
||||
async function fetchData() {
|
||||
if (isLoading.isTableLoading) return
|
||||
|
||||
isLoading.isTableLoading = true
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user