Browse Source

fix: validate graph shouldn't remove empty-placeholder values

Tienson Qin 4 months ago
parent
commit
cb0bda3c52
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/worker/db/validate.cljs

+ 2 - 1
src/main/frontend/worker/db/validate.cljs

@@ -168,7 +168,8 @@
                                  (:db/ident property))]
                      (keep
                       (fn [[b v]]
-                        (when-not (matches v)
+                        (when-not (or (matches v)
+                                      (= :logseq.property/empty-placeholder (:db/ident (d/entity db v))))
                           [:db/retract b (:db/ident  property) v]))
                       values)))
                  properties)]