From cb26b9af39167484e5afcff1cd6197ab4e558fee Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 2 Jun 2022 16:02:01 -0400 Subject: [PATCH] fix (contractpicker): Remove SecurityMap CoerceValueCallback This was breaking the binding so that the view had a different security-map instance than the vm --- .../view/Spark/ContractPicker/ContractPickerPopup.xaml.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/spark/view/Spark/ContractPicker/ContractPickerPopup.xaml.cs b/src/client/spark/view/Spark/ContractPicker/ContractPickerPopup.xaml.cs index 8c1263ad6..8a5538836 100644 --- a/src/client/spark/view/Spark/ContractPicker/ContractPickerPopup.xaml.cs +++ b/src/client/spark/view/Spark/ContractPicker/ContractPickerPopup.xaml.cs @@ -1,4 +1,4 @@ -namespace mbts.ui.controls { +namespace mbts.ui.controls { using bts.api; using bts.utils; @@ -143,8 +143,7 @@ o._selection_sync_gate.try_update(() => o._sync_selection_props( o.SelectedSecurityMD, o.SelectedSecurity, o.SelectedSecurityKey, o._last_selected_sec_key)); o._security_map_changed?.Invoke(v); - }, - (o, v) => v ?? new Dictionary()); + }); public IReadOnlyDictionary SecurityMap { get => GetValue(SecurityMapProperty) as IReadOnlyDictionary;