From 9d8f65adc032191adbdccae3f27423957e83bf79 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 18 Feb 2022 13:53:40 -0500 Subject: [PATCH] Fix typo in ObservableAutoWrapper.connect overload Previously, it wasn't passing the on_removed param to the other overload --- src/client/spark/core/Collections/ObservableAutoWrapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark/core/Collections/ObservableAutoWrapper.cs b/src/client/spark/core/Collections/ObservableAutoWrapper.cs index e2c7c1859..e14285d89 100644 --- a/src/client/spark/core/Collections/ObservableAutoWrapper.cs +++ b/src/client/spark/core/Collections/ObservableAutoWrapper.cs @@ -96,7 +96,7 @@ namespace mbts.ui.utility { } public static IDisposable connect(ObservableCollection source, IList target, Func create, Action on_removed = null) => - connect, T, TResult>(source, target, create, null); + connect, T, TResult>(source, target, create, on_removed); public static IDisposable connect(TCollection source, IList target, Func create, Action on_removed = null) where TCollection : IReadOnlyList, INotifyCollectionChanged => connect(source, source, target, create, on_removed);