浏览代码

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

Tienson Qin 5 年之前
父节点
当前提交
d23a3c9830
共有 1 个文件被更改,包括 1 次插入1 次删除
  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))]
         properties (into {} (:block/properties block))]
     (if (and
     (if (and
          new-marker
          new-marker
-         (not= new-marker (string/lower-case (:block/marker block)))
+         (not= new-marker (string/lower-case (or :block/marker block "")))
          (state/enable-timetracking?))
          (state/enable-timetracking?))
       (assoc properties new-marker (util/time-ms))
       (assoc properties new-marker (util/time-ms))
       properties)))
       properties)))