Skip to content

Scheduling infrastructure for absolutely everyone.

fix: navigation items weird behavior (#17929)

Anik Dhabal Babu51c91e41da9f
diff --git a/packages/features/flags/hooks/index.ts b/packages/features/flags/hooks/index.ts
index f952163948c..582fb0e012d 100644
--- a/packages/features/flags/hooks/index.ts
+++ b/packages/features/flags/hooks/index.ts
@@ -22,8 +22,6 @@ if (process.env.NEXT_PUBLIC_IS_E2E) {
}
export function useFlags(): Partial<AppFlags> {
- const query = trpc.viewer.features.map.useQuery(undefined, {
- initialData,
- });
- return query.data ?? {};
+ const query = trpc.viewer.features.map.useQuery();
+ return query.data ?? initialData;
}