Explorar o código

fix: property value could be empty too

Tienson Qin %!s(int64=3) %!d(string=hai) anos
pai
achega
a4b471f79c
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/main/frontend/handler/property.cljs

+ 1 - 3
src/main/frontend/handler/property.cljs

@@ -82,9 +82,7 @@
 
 (defn add-property-value!
   [entity property-id property-value]
-  (when-not (or
-             (= property-id (:block/uuid entity))
-             (string/blank? property-value))
+  (when (not= property-id (:block/uuid entity))
     (let [properties (:block/properties entity)
           properties' (assoc properties property-id property-value)
           refs (extract-refs entity properties')]