fix(editor): skip empty block when cycle todo

pull/6439/head
Andelf 2022-08-21 19:52:00 +08:00 committed by Tienson Qin
parent 653b72211d
commit c579053068
1 changed files with 2 additions and 1 deletions

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!
[]