diff --git a/src/controls/dev/TreeView/TreeViewNode.cpp b/src/controls/dev/TreeView/TreeViewNode.cpp index bd19c75b5b..f64a161bc9 100644 --- a/src/controls/dev/TreeView/TreeViewNode.cpp +++ b/src/controls/dev/TreeView/TreeViewNode.cpp @@ -430,7 +430,7 @@ void TreeViewNodeVector::RemoveAt(unsigned int index, bool updateItemsSource,boo void TreeViewNodeVector::RemoveAtEnd(bool updateItemsSource) { const auto index = GetVectorInnerImpl()->Size() - 1; - RemoveAt(updateItemsSource); + RemoveAt(index, updateItemsSource); } void TreeViewNodeVector::ReplaceAll(winrt::array_view values, bool updateItemsSource)