Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: do not disable selection mode if not in selection mode

thecodrrfedb4a645a2a
diff --git a/apps/web/src/utils/use-routes.js b/apps/web/src/utils/use-routes.js
index e4d4b8f27..5a1d573bf 100644
--- a/apps/web/src/utils/use-routes.js
+++ b/apps/web/src/utils/use-routes.js
@@ -8,7 +8,7 @@ export default function useRoutes(routes, options) {
const matcher = makeMatcher();
// TODO move this to an extension function
- selectionStore.toggleSelectionMode(false);
+ if (selectionStore.isSelectionMode) selectionStore.toggleSelectionMode(false);
for (var key in routes) {
const [match, params] = matcher(key, location);