Browse Source

fix: can't add tag

Tienson Qin 1 year ago
parent
commit
7be3421e99
1 changed files with 2 additions and 2 deletions
  1. 2 2
      deps/outliner/src/logseq/outliner/core.cljs

+ 2 - 2
deps/outliner/src/logseq/outliner/core.cljs

@@ -398,8 +398,8 @@
                                       (->>
                                        (concat (map :db/id (:block/tags block-entity))
                                                (map (fn [t] (or (:db/id t)
-                                                                (some->> (:block/uuid t)
-                                                                         (partial vector :block/uuid))))
+                                                                (when-let [id (:block/uuid t)]
+                                                                  [:block/uuid id])))
                                                     tags))
                                        (remove nil?))))
               m)]