Browse Source

enhance: show delete button for existing datetime values

fixes logseq/db-test#123
Gabriel Horner 1 year ago
parent
commit
9e85850378
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/components/property/value.cljs

+ 1 - 1
src/main/frontend/components/property/value.cljs

@@ -330,7 +330,7 @@
                                       (property-handler/set-block-property! repo (:block/uuid block)
                                                                             (:db/ident property)
                                                                             (if (map? value) (:db/id value) value)))
-                         :del-btn? (some-> value (:block/title) (boolean))
+                         :del-btn? (some? value)
                          :on-delete (fn []
                                       (property-handler/set-block-property! repo (:block/uuid block)
                                                                             (:db/ident property) nil)