SP-54: Apply filters after md change

This commit is contained in:
Michael Harding committed 2020-01-23 16:49:04 -05:00
1 parent 415d03a156
commit fd5ea2f864
1 file changed
+6 -2
+6 -2
View File
@@ -381,7 +381,7 @@ let update msg (model:Reports.Types.Model) : Model * Cmd<Msg> =
let secs:(uint32 * PositionSecurity) list =
data
|> List.ofArray
|> List.collect (fun i ->
|> List.collect (fun i ->
JSMap.toList i.names
|> List.map (fun x ->
(uint32 <| fst x),
@@ -393,7 +393,11 @@ let update msg (model:Reports.Types.Model) : Model * Cmd<Msg> =
)
)
{ model with mdRelayExpNameData = data; securityList = secs |> Map.ofList }, selectSub None model
{ model with mdRelayExpNameData = data; securityList = secs |> Map.ofList },
Cmd.batch (
selectSub None model ::
(Cmd.ofMsg (SetPnLSort <| fst model.PnLSortDirection ))::
[ for f in model.PnLFilterValues do yield Cmd.ofMsg (SetPnLFilter (f.Key, f.Value))])
| UpdateProducts data ->
{ model with mdRelayProductData = data}, Cmd.ofExistingPromise (requestExpNames model.mdRelay) id (box>>ErrorOccured)
| ChangePnLColumnVisibility (header, visibility) ->