Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
9c6927cb
Unverified
Commit
9c6927cb
authored
Oct 15, 2018
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REFACTOR] minor
parent
9f6f3704
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Documents.purs
src/Gargantext/Pages/Corpus/Tabs/Documents.purs
+4
-4
No files found.
src/Gargantext/Pages/Corpus/Tabs/Documents.purs
View file @
9c6927cb
...
...
@@ -191,15 +191,15 @@ loadPage {nodeId, limit, offset} = do
_ <- logs err
pure $ Left $ show err
Right resData -> do
let docs = res2corpus resData
let docs = res2corpus
<$>
resData
_ <- logs "Ok: loading page documents"
_ <- logs $ map show docs
pure $ Right $
if mock then take limit $ drop offset sampleData else
docs
where
res2corpus ::
Array Response -> Array
DocumentsView
res2corpus
rs = map (\(Response r) ->
res2corpus ::
Response ->
DocumentsView
res2corpus
(Response r) =
DocumentsView { _id : r.cid
, url : ""
, date : r.created
...
...
@@ -207,7 +207,7 @@ loadPage {nodeId, limit, offset} = do
, source : (\(Hyperdata hr) -> hr.source) r.hyperdata
, fav : r.favorite
, ngramCount : r.ngramCount
}
) rs
}
---------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment