ManualFillsVM - placeholder rows weren't getting removed after they were persisted

This commit is contained in:
John Colvin committed 2019-05-22 12:39:51 -05:00
1 parent 7dc272506a
commit 769bad89a7
1 file changed
+3 -2
@@ -127,8 +127,9 @@ namespace bts.shell.manual_fills {
}), null, accounts.FirstOrDefault(), users.FirstOrDefault())));
void _add_fill(ManualFillRow new_row) =>
_placeholder_rows.Add((new_row ?? (new_row = row_factory())).placeholder_key.HasValue ?
new_row : throw new InvalidOperationException("New row is already persisted."));
_placeholder_rows.InsertSorted((new_row ?? (new_row = row_factory())).placeholder_key.HasValue ?
new_row : throw new InvalidOperationException("New row is already persisted."),
_row_key_comparer);
async Task _commit_async(IEnumerable<ManualFillRow> rows) {
var updates = new List<ManualFill>();