Browse Source

fix: properties editing not working

Tienson Qin 5 years ago
parent
commit
71b286f389
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/frontend/text.cljs

+ 2 - 2
src/main/frontend/text.cljs

@@ -124,8 +124,8 @@
           (string/starts-with? content' (string/lower-case properties-text)))
          (and (contains-properties? content)
               ;; not changed
-              (= (:block/properties (db/entity [:block/uuid (:block/uuid block)]))
-                 properties)))
+              (= (seq (:block/properties (db/entity [:block/uuid (:block/uuid block)])))
+                 (seq properties))))
       content
       (-> (remove-properties! content)
           (rejoin-properties properties)))))