Merge branch 'features/clean-up-authenticated-data' of github.com:khoj-ai/khoj into features/update-home-page

This commit is contained in:
sabaimran
2024-12-21 19:32:07 -08:00
3 changed files with 7 additions and 1 deletions

View File

@@ -23,6 +23,10 @@ export function useAuthenticatedData() {
revalidateOnFocus: false,
});
if (data?.detail === "Forbidden") {
return { data: null, error: "Forbidden", isLoading: false };
}
return { data, error, isLoading };
}