From 51c91e41da9fcb64d7307e6e82978979e4fbace0 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Tue, 3 Dec 2024 00:38:13 +0530 Subject: [PATCH] fix: navigation items weird behavior (#17929) --- packages/features/flags/hooks/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/features/flags/hooks/index.ts b/packages/features/flags/hooks/index.ts index f952163948..582fb0e012 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 { - const query = trpc.viewer.features.map.useQuery(undefined, { - initialData, - }); - return query.data ?? {}; + const query = trpc.viewer.features.map.useQuery(); + return query.data ?? initialData; }