Display not found instead of error
This commit is contained in:
parent
1dd0488c62
commit
0d51418f72
1 changed files with 4 additions and 2 deletions
|
@ -6,7 +6,7 @@ import { Query, QueryResult } from "react-apollo";
|
||||||
import { useIntl } from "react-intl";
|
import { useIntl } from "react-intl";
|
||||||
|
|
||||||
import AppProgress from "./components/AppProgress";
|
import AppProgress from "./components/AppProgress";
|
||||||
import ErrorPage from "./components/ErrorPage/ErrorPage";
|
import NotFoundPage from "./components/NotFoundPage";
|
||||||
import useNavigator from "./hooks/useNavigator";
|
import useNavigator from "./hooks/useNavigator";
|
||||||
import useNotifier from "./hooks/useNotifier";
|
import useNotifier from "./hooks/useNotifier";
|
||||||
import { commonMessages } from "./intl";
|
import { commonMessages } from "./intl";
|
||||||
|
@ -129,7 +129,9 @@ export function TypedQuery<TData, TVariables>(
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
childrenOrNotFound = <ErrorPage onBack={() => navigate("/")} />;
|
childrenOrNotFound = (
|
||||||
|
<NotFoundPage onBack={() => navigate("/")} />
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (displayLoader) {
|
if (displayLoader) {
|
||||||
|
|
Loading…
Reference in a new issue