Commit 17b10bb7 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[ngrams score] fix refresh when sorting by score

parent d6d237c1
......@@ -405,7 +405,12 @@ pagePaintRawCpt = R.hooksComponentWithModule thisModule "pagePaintRawCpt" cpt wh
]
, H.div { className: tClassName } [ H.text $ if r.source == "" then "Source" else r.source ]
-- , H.div {} [ H.text $ maybe "-" show r.score ]
, H.div { className: tClassName } [ GCS.scoreEl { docId: r._id, nodeId, score: r.score, session, tableReload: reload } [] ]
, H.div { className: tClassName } [ GCS.scoreEl { docId: r._id
, key: show nodeId <> "-" <> show r._id
, nodeId
, score: r.score
, session
, tableReload: reload } [] ]
]
, delete: true }
where
......
......@@ -26,6 +26,7 @@ thisModule = "Gargantext.Components.Score"
type Props = (
docId ::DocID
, key :: String
, nodeId :: GT.NodeID
, score :: Maybe Score
, session :: Session
......
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