X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c7e85a03f2726bd20bc10aeb9edb2cc826f16909..4ba3f6420c77ad3bc1cdd877e4f3ed12ab63ccf7:/src/routes/route-change-handlers.ts diff --git a/src/routes/route-change-handlers.ts b/src/routes/route-change-handlers.ts index bb88f4a1..141ae20b 100644 --- a/src/routes/route-change-handlers.ts +++ b/src/routes/route-change-handlers.ts @@ -18,6 +18,7 @@ export const addRouteChangeHandlers = (history: History, store: RootStore) => { }; const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => { + const rootMatch = Routes.matchRootRoute(pathname); const projectMatch = Routes.matchProjectRoute(pathname); const collectionMatch = Routes.matchCollectionRoute(pathname); @@ -99,4 +100,4 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => { } else if (linksMatch) { store.dispatch(WorkbenchActions.loadLinks); } -}; +}; \ No newline at end of file