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

fix: hide page history menu for db graphs

fixes https://github.com/logseq/db-test/issues/355
Tienson Qin 6 месяцев назад
Родитель
Сommit
6f269462ab
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/frontend/components/page_menu.cljs

+ 1 - 1
src/main/frontend/components/page_menu.cljs

@@ -79,7 +79,7 @@
                            (page-handler/<unfavorite-page! page-title)
                            (page-handler/<favorite-page! page-title)))}})
 
-          (when (or (util/electron?) file-sync-graph-uuid)
+          (when (and (or (util/electron?) file-sync-graph-uuid) (not db-based?))
             {:title   (t :page/version-history)
              :options {:on-click
                        (fn []