feat: board updating on the server
This commit is contained in:
@ -11,7 +11,7 @@ const useBoardsList = ({ projectId }: Props) => {
|
||||
const [boards, setBoards] = useState<BoardSchema[]>([]);
|
||||
|
||||
const { data, refetch, isLoading } = useQuery({
|
||||
...getBoardsOptions({ path: { project_id: projectId! } }),
|
||||
...getBoardsOptions({ path: { projectId: projectId! } }),
|
||||
enabled: projectId !== undefined,
|
||||
});
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ const useDealsList = ({ boardId }: Props) => {
|
||||
const [deals, setDeals] = useState<DealSchema[]>([]);
|
||||
|
||||
const { data, refetch, isLoading } = useQuery({
|
||||
...getDealsOptions({ path: { board_id: boardId! } }),
|
||||
...getDealsOptions({ path: { boardId: boardId! } }),
|
||||
enabled: boardId !== undefined,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user