Browse Source

fix(editor): :black/marker might be empty

Tienson Qin 5 years ago
parent
commit
d23a3c9830
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/handler/editor.cljs

+ 1 - 1
src/main/frontend/handler/editor.cljs

@@ -743,7 +743,7 @@
         properties (into {} (:block/properties block))]
     (if (and
          new-marker
-         (not= new-marker (string/lower-case (:block/marker block)))
+         (not= new-marker (string/lower-case (or :block/marker block "")))
          (state/enable-timetracking?))
       (assoc properties new-marker (util/time-ms))
       properties)))