Browse Source

fix: will-mount should return a state

Resolved #713
Tienson Qin 5 years ago
parent
commit
f25844a833
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/diff.cljs

+ 2 - 1
src/main/frontend/components/diff.cljs

@@ -169,7 +169,8 @@
                       "Install Logseq on GitHub"
                       :href (str "https://github.com/apps/" config/github-app-name "/installations/new"))]
                    :error
-                   false)))))))))
+                   false))))))))
+     state)
    :will-unmount
    (fn [state]
      (reset! diffs nil)