We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 845d231 commit 6f93ca4Copy full SHA for 6f93ca4
WooCommerce/Classes/ViewRelated/Filters/FilterListViewController.swift
@@ -183,13 +183,15 @@ private extension FilterListViewController {
183
}
184
185
func observeListSelectorCommandItemSelection() {
186
+ cancellableSelectedFilterType?.cancel()
187
cancellableSelectedFilterType = listSelectorCommand.onItemSelected.subscribe { [weak self] selected in
188
guard let self = self else {
189
return
190
191
192
switch selected.listSelectorConfig {
193
case .staticOptions(let options):
194
+ self.cancellableSelectedFilterValue?.cancel()
195
let command = StaticListSelectorCommand(navigationBarTitle: selected.title,
196
data: options,
197
selected: selected.selectedValue)
0 commit comments