diff --git a/apps/web/src/utils/use-routes.js b/apps/web/src/utils/use-routes.js index ea43e8a32..e4d4b8f27 100644 --- a/apps/web/src/utils/use-routes.js +++ b/apps/web/src/utils/use-routes.js @@ -1,11 +1,15 @@ import { useLocation } from "wouter"; import makeMatcher from "wouter/matcher"; import { navigate } from "../navigation"; +import { store as selectionStore } from "../stores/selection-store"; export default function useRoutes(routes, options) { const [location] = useLocation(); const matcher = makeMatcher(); + // TODO move this to an extension function + selectionStore.toggleSelectionMode(false); + for (var key in routes) { const [match, params] = matcher(key, location); if (match) {