fix (contractpicker): Remove SecurityMap CoerceValueCallback

This was breaking the binding so that the view had a different
security-map instance than the vm
This commit is contained in:
John Colvin committed 2022-06-02 17:44:38 -04:00
1 parent f8059cc87e
commit cb26b9af39
1 file changed
+2 -3
@@ -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<uint, SecurityMD>());
});
public IReadOnlyDictionary<uint, SecurityMD> SecurityMap {
get => GetValue(SecurityMapProperty) as IReadOnlyDictionary<uint, SecurityMD>;