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