Commit 248403e7 authored by Nicolas Pouillard's avatar Nicolas Pouillard

Tiny refactor

parent c789dd32
......@@ -126,7 +126,7 @@ getTable :: NodeId -> Maybe TabType
-> Maybe OrderBy -> Cmd err FacetTableResult
getTable cId ft o l order = do
docs <- getTable' cId ft o l order
docsCount <- runCountDocuments cId (if ft == Just Trash then True else False)
docsCount <- runCountDocuments cId (ft == Just Trash)
pure $ TableResult { tr_docs = docs, tr_count = docsCount }
getTable' :: NodeId -> Maybe TabType
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment