Преглед изворни кода

fix: navigating prev and next journals e.g. `g p`

Gabriel Horner пре 1 година
родитељ
комит
5362c69aa1
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/main/frontend/handler/journal.cljs

+ 2 - 1
src/main/frontend/handler/journal.cljs

@@ -27,7 +27,8 @@
 (defn- get-current-journal
   []
   (let [current-page (state/get-current-page)]
-    (or (date/journal-title->long current-page)
+    (or (when current-page
+          (date/journal-title->long (:block/title (db-model/get-block-by-uuid current-page))))
         (util/time-ms))))
 
 (defn go-to-prev-journal!