fix(editor): skip empty block when cycle todo

This commit is contained in:
Andelf
2022-08-21 19:52:00 +08:00
committed by Tienson Qin
parent 653b72211d
commit c579053068

View File

@@ -756,7 +756,8 @@
(remove nil?))]
(doseq [id ids]
(let [block (db/pull [:block/uuid id])]
(set-marker block))))))
(when (not-empty (:block/content block))
(set-marker block)))))))
(defn cycle-todo!
[]