소스 검색

fix: property value could be empty too

Tienson Qin 3 년 전
부모
커밋
a4b471f79c
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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')]