Explorar el Código

fix: don't show breadcrumb for pages when tagging

Tienson Qin hace 6 meses
padre
commit
727391fe7a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/main/frontend/components/editor.cljs

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

@@ -185,7 +185,7 @@
                                        (or (db/entity [:block/uuid id]) block)
                                        block)]
                           [:div.flex.flex-col
-                           (when (and (not (:page? block)) (:block/uuid block'))
+                           (when (and (not (or (:page? block) (ldb/page? block))) (:block/uuid block'))
                              (when-let [breadcrumb (state/get-component :block/breadcrumb)]
                                [:div.text-xs.opacity-70.mb-1 {:style {:margin-left 3}}
                                 (breadcrumb {:search? true} (state/get-current-repo) (:block/uuid block') {})]))