소스 검색

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

Close #10958
Andelf 2 년 전
부모
커밋
0725a1b4a5
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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)