Front: If resource is not found, redirect to Error View

This commit is contained in:
Arthur Jamet
2023-06-21 17:16:22 +01:00
committed by Clément Le Bihan
parent 45595408fe
commit 3e84605c59
7 changed files with 53 additions and 7 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ type SetttingsNavigatorProps = {
const SetttingsNavigator = (props?: RouteProps<SetttingsNavigatorProps>) => {
const userQuery = useQuery(['user'], () => API.getUserInfo());
const user = useMemo(() => userQuery.data, [userQuery]);
console.log(props?.screen);
if (userQuery.isLoading) {
return (
<Center style={{ flex: 1 }}>