diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/notfound')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/notfound/index.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/notfound/index.tsx b/packages/merchant-backoffice-ui/src/paths/notfound/index.tsx index d780b5988..4d348c02b 100644 --- a/packages/merchant-backoffice-ui/src/paths/notfound/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/notfound/index.tsx @@ -24,6 +24,7 @@ import { Fragment, h, VNode } from "preact"; import { Link, route } from "preact-router"; import { NotificationCard } from "../../components/menu/index.js"; import { + cleanAllCache, DEFAULT_ADMIN_USERNAME, useSessionContext, } from "../../context/session.js"; @@ -57,6 +58,9 @@ export function NotFoundPageOrAdminCreate(): VNode { <InstanceCreatePage forceId={DEFAULT_ADMIN_USERNAME} onConfirm={() => { + // we need to clear everything since we take some + // 404 as "default instance don't exist" + cleanAllCache() route(InstancePaths.bank_list); }} /> |