fix(workflow-workflow-list): restore default sorting
This commit is contained in:
parent
90599ae7fd
commit
454a91702b
@ -494,11 +494,11 @@ workflowWorkflowList (title, heading) WWListColumns{..} sqlPred = do
|
||||
|
||||
return JsonWorkflowWorkflow{..}
|
||||
workflowWorkflowDBTableValidator = def
|
||||
-- & defaultSorting defSort
|
||||
& defaultSorting defSort
|
||||
& forceFilter "may-access" (Any True)
|
||||
-- defSort | wwListColumnInstance = SortAscBy "instance" : defSort'
|
||||
-- | otherwise = defSort'
|
||||
-- where defSort' = [SortAscBy "final", SortAscBy "current-state", SortDescBy "last-action-time"]
|
||||
defSort | wwListColumnInstance = SortAscBy "instance" : defSort'
|
||||
| otherwise = defSort'
|
||||
where defSort' = [SortAscBy "final", SortAscBy "current-state", SortDescBy "last-action-time"]
|
||||
in dbTableDB' workflowWorkflowDBTableValidator workflowWorkflowDBTable
|
||||
|
||||
siteLayoutMsg heading $ do
|
||||
|
||||
Loading…
Reference in New Issue
Block a user