Commit e600cee0 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[docstable] fix for document view filter for cache on/off

parent 0a3fde0d
Pipeline #1795 failed with stage
......@@ -276,8 +276,10 @@ pageLayoutCpt = here.component "pageLayout" cpt where
handleResponse :: HashedResponse (TableResult Response) -> Tuple Int (Array DocumentsView)
handleResponse (HashedResponse { hash, value: res }) = ret
where
filters = filterDocs query
filterDocs' q ds = case cacheState' of
NT.CacheOff -> ds
NT.CacheOn -> filterDocs q ds
filters = filterDocs' query
>>> \res' -> case yearFilter' of
Nothing -> res'
Just year -> filterDocsByYear year res'
......
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