Skip to content

Commit 3464a29

Browse files
committed
PR fix issue in the indexer not being updated
1 parent c3e80ba commit 3464a29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Runtime/ObservableDictionary.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ private int AdjustIndex(int index, Action<TKey, TValue, TValue, ObservableUpdate
460460

461461
for (var i = index - 1; i > -1; i--)
462462
{
463-
if (list[index] == action)
463+
if (list[i] == action)
464464
{
465465
return i;
466466
}

Runtime/ObservableList.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ private int AdjustIndex(int index, Action<int, T, T, ObservableUpdateType> actio
322322

323323
for (var i = index - 1; i > -1; i--)
324324
{
325-
if (_updateActions[index] == action)
325+
if (_updateActions[i] == action)
326326
{
327327
return i;
328328
}

0 commit comments

Comments
 (0)