fix: update route reference for form histories in FormHistoryIndex component
This commit is contained in:
parent
2a0b99c599
commit
72ac9fe2fb
@ -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,
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user