Skip to content

Commit

Permalink
fix: mod+enter set task status to Doing
Browse files Browse the repository at this point in the history
When logseq.property/Status' default value is Todo.
  • Loading branch information
tiensonqin committed Dec 12, 2024
1 parent 7de6349 commit f289988
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/frontend/handler/editor.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,9 @@

(defn db-based-cycle-todo!
[block]
(let [status-value (:logseq.task/status block)
(let [status-value (if (ldb/class-instance? (db/entity :logseq.class/Task) block)
(:logseq.task/status block)
(get block :logseq.task/status {}))
next-status (case (:db/ident status-value)
:logseq.task/status.todo
:logseq.task/status.doing
Expand Down

0 comments on commit f289988

Please sign in to comment.