1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fix admin options not showing up

This commit is contained in:
xmflsct
2022-12-29 23:13:22 +01:00
parent 43a98be2d9
commit a77e495b6b
5 changed files with 48 additions and 46 deletions

View File

@ -26,7 +26,11 @@ const useProfileQuery = (
options: UseQueryOptions<AccountWithSource, AxiosError>
} | void
) => {
return useQuery(queryKey, queryFunctionProfile, params?.options)
return useQuery(queryKey, queryFunctionProfile, {
...params?.options,
staleTime: Infinity,
cacheTime: Infinity
})
}
type MutationVarsProfileBase =