fix: block background && repeat parents

pull/1686/head
Tienson Qin 2021-04-18 16:16:05 +08:00
parent 10a839b1c6
commit c61a93112e
3 changed files with 5 additions and 5 deletions

View File

@ -1545,9 +1545,10 @@
(when (seq parents)
(let [parents (doall
(for [{:block/keys [uuid title]} parents]
[:a {:href (rfe/href :page {:name uuid})}
(map-inline config title)]))
(for [{:block/keys [uuid title name]} parents]
(when-not name ; not page
[:a {:href (rfe/href :page {:name uuid})}
(map-inline config title)])))
parents (remove nil? parents)]
(reset! parents-atom parents)
(when (seq parents)

View File

@ -716,7 +716,6 @@
(defn- block-property-aux!
[block-id key value]
(let [block-id (if (string? block-id) (uuid block-id) block-id)
key (string/lower-case (name key))
repo (state/get-current-repo)]
(when repo
(when-let [block (db/entity [:block/uuid block-id])]

View File

@ -139,7 +139,7 @@
(walk/postwalk
(fn [el]
(if (map? el)
(not-empty (into {} (remove (comp nil? second)) el))
(into {} (remove (comp nil? second)) el)
el))
nm))