mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 17:06:23 +00:00
Disable sorting if query contains and there is no default sorting
- Also fixed caret not showing up when sorting occurs by default for a default sorting state coming from :query-sort-by and :query-sort-desc - Also cleaned up sort state. Rum local state doesn't seem necessary
This commit is contained in:
@@ -577,6 +577,10 @@ Some bindings in this fn:
|
||||
(when sort-by
|
||||
{:transform-fn sort-by})))))))
|
||||
|
||||
(defn query-contains-filter?
|
||||
[query filter-name]
|
||||
(string/includes? query (str "(" filter-name)))
|
||||
|
||||
(comment
|
||||
;; {{query (and (page-property foo bar) [[hello]])}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user