Просмотр исходного кода

fix(drawer): display user-defined drawer

fix https://github.com/logseq/logseq/issues/3383
leizhe 4 лет назад
Родитель
Сommit
849c077b93
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/main/frontend/components/block.cljs

+ 3 - 1
src/main/frontend/components/block.cljs

@@ -2638,7 +2638,9 @@
               [:div.opacity-50.font-medium
                (util/format ":%s:" (string/upper-case name))]
               [:div.opacity-50.font-medium
-               (logbook-cp lines)
+               (if (= name "logbook")
+                 (logbook-cp lines)
+                 (apply str lines))
                [:div ":END:"]]
               {:default-collapsed? true
                :title-trigger? true})]]])