fix: update route reference for form histories in FormHistoryIndex component

This commit is contained in:
Yoga Pangestu 2026-08-22 15:52:26 +07:00
parent 2a0b99c599
commit 72ac9fe2fb

View File

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