fix: projects prefetch fixed
This commit is contained in:
@ -21,7 +21,7 @@ async function prefetchData() {
|
||||
const queryClient = new QueryClient();
|
||||
const projectsData = await queryClient.fetchQuery(getProjectsOptions());
|
||||
|
||||
const firstProjectId = projectsData.projects?.[0]?.id;
|
||||
const firstProjectId = projectsData.items?.[0]?.id;
|
||||
if (!firstProjectId) return queryClient;
|
||||
|
||||
await queryClient.prefetchQuery(
|
||||
|
||||
Reference in New Issue
Block a user