Commit 1f3ec695 authored by Alexandre Delanoë's avatar Alexandre Delanoë

Merge branch '328-dev-document-view-filter-fix-for-cache-on-off' of...

Merge branch '328-dev-document-view-filter-fix-for-cache-on-off' of ssh://gitlab.iscpif.fr:20022/gargantext/purescript-gargantext into dev-merge
parents cc1905f6 e600cee0
......@@ -275,8 +275,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