Browse Source

fix(editor): wrong new page link handling in graph view

Close #10958
Andelf 2 years ago
parent
commit
0725a1b4a5
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/main/frontend/components/page.cljs

+ 1 - 4
src/main/frontend/components/page.cljs

@@ -741,10 +741,7 @@
      (mixins/listen state js/window "resize"
                     (fn [_e]
                       (reset! layout [js/window.innerWidth js/window.innerHeight])))))
-  {:will-mount (fn [state]
-                 (state/set-search-mode! :graph)
-                 state)
-   :will-unmount (fn [state]
+  {:will-unmount (fn [state]
                    (reset! *n-hops nil)
                    (reset! *focus-nodes [])
                    (state/set-search-mode! :global)