diff --git a/resources/js/pages/admin/system/form-histories/index.tsx b/resources/js/pages/admin/system/form-histories/index.tsx index d761943..64ba16e 100644 --- a/resources/js/pages/admin/system/form-histories/index.tsx +++ b/resources/js/pages/admin/system/form-histories/index.tsx @@ -4,6 +4,7 @@ import type { PaginationState } from '@/components/data-display'; import { DataTable } from '@/components/data-display'; import { PageHeader } from '@/components/layout'; import { useServerTable } from '@/hooks/use-server-table'; +import { index as formHistoriesIndex } from '@/routes/admin/form-histories'; import type { FormHistory } from './columns'; import { createFormHistoryColumns } from './columns'; import { AttributeChangesDialog } from './attribute-changes-dialog'; @@ -36,7 +37,7 @@ export default function FormHistoryIndex({ formHistories, modules, events }: Pro handlePerPageChange, handleSearchChange, } = useServerTable({ - route: () => route('admin.form-histories.index'), + route: () => formHistoriesIndex.url(), pagination, });