Explorar o código

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

Tienson Qin %!s(int64=5) %!d(string=hai) anos
pai
achega
d23a3c9830
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)))