mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 23:25:05 +00:00
Fix result count in list view - fix #8586
Fix so that it is correct and consistent with table view
This commit is contained in:
committed by
Gabriel Horner
parent
fc3e5ac59e
commit
60e480757a
@@ -3263,7 +3263,10 @@
|
||||
[:div.flex.flex-row.items-center.fade-in
|
||||
(when (> (count result) 0)
|
||||
[:span.results-count
|
||||
(str (count result) (if (> (count result) 1) " results" " result"))])
|
||||
(let [result-count (if (and (not table?) (map? result))
|
||||
(apply + (map (comp count val) result))
|
||||
(count result))]
|
||||
(str result-count (if (> result-count 1) " results" " result")))])
|
||||
|
||||
(when (and current-block (not view-f) (nil? table-view?) (not page-list?))
|
||||
(if table?
|
||||
|
||||
Reference in New Issue
Block a user