diff --git a/VDS/Components/SelectorBase/SelectorGroup.swift b/VDS/Components/SelectorBase/SelectorGroup.swift index e98beaeb..3de39055 100644 --- a/VDS/Components/SelectorBase/SelectorGroup.swift +++ b/VDS/Components/SelectorBase/SelectorGroup.swift @@ -100,18 +100,38 @@ open class SelectorGroup SelectorType? { + if let index = model.selectors.firstIndex(where: { element in + return element.id == viewModel.id + }) { + return model.selectors[index] + } else { + return nil + } + } public func replace(viewModel: SelectorType){ if let index = model.selectors.firstIndex(where: { element in