fix: prefer db/id instead of entity for use-effect deps

This commit is contained in:
Tienson Qin
2025-01-06 23:49:56 +08:00
parent a45da56cd2
commit 883293aa58

View File

@@ -2754,7 +2754,7 @@
(fn []
(p/let [result (db-async/<task-spent-time repo (:db/id block))]
(set-result! result)))
[(:logseq.task/status block)])
[(:db/id (:logseq.task/status block))])
(when (and time-spent (> time-spent 0))
[:div.text-sm.time-spent.ml-1
(shui/button