Skip to content

Commit e020c85

Browse files
committed
Fixed frontend code for deployment to build correctly
1 parent 0dae2e0 commit e020c85

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

frontend/src/routes/_layout/projects.index.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,14 @@ function getStatusLabel(status: string) {
5757
}
5858

5959
function ProjectsTable() {
60-
const navigate = useNavigate({ from: Route.fullPath })
6160
const { page } = Route.useSearch()
6261

6362
const { data, isLoading, isPlaceholderData } = useQuery({
6463
...getProjectsQueryOptions({ page }),
6564
placeholderData: (prevData) => prevData,
6665
})
6766

68-
const setPage = (page: number) => {
69-
navigate({
70-
to: "/projects",
71-
search: (prev) => ({ ...prev, page }),
72-
})
73-
}
74-
7567
const projects = data?.data ?? []
76-
const count = data?.count ?? 0
7768

7869
if (isLoading) {
7970
return <Text>Loading projects...</Text>

0 commit comments

Comments
 (0)