260228:1559 20260228:16:00 fix drawings pageSize and add reference_date to schema
Some checks failed
Build and Deploy / deploy (push) Failing after 52s
Some checks failed
Build and Deploy / deploy (push) Failing after 52s
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import { DrawingCard } from '@/components/drawings/card';
|
||||
import { useDrawings } from '@/hooks/use-drawing';
|
||||
import { Drawing } from '@/types/drawing';
|
||||
import { Loader2 } from 'lucide-react';
|
||||
import { useState } from 'react';
|
||||
import { PaginationState, SortingState } from '@tanstack/react-table';
|
||||
import { ServerDataTable } from '@/components/documents/common/server-data-table';
|
||||
@@ -32,12 +29,11 @@ export function DrawingList({ type, projectId, filters }: DrawingListProps) {
|
||||
const {
|
||||
data: response,
|
||||
isLoading,
|
||||
isError,
|
||||
} = useDrawings(type, {
|
||||
projectId,
|
||||
...filters,
|
||||
page: pagination.pageIndex + 1, // API is 1-based
|
||||
pageSize: pagination.pageSize,
|
||||
limit: pagination.pageSize,
|
||||
} as any);
|
||||
|
||||
const drawings = response?.data || [];
|
||||
|
||||
Reference in New Issue
Block a user