This commit is contained in:
Михаил Капелько
2024-01-08 15:33:18 +03:00
parent 005621eccc
commit 95f66ab82c

View File

@@ -34,14 +34,16 @@ extension BusUI {
textUI, textUI,
$v $v
.removeDuplicates() .removeDuplicates()
.compactMap(onlyUIText) .compactMap { v in
.compactMap { v -> Any in guard
if let id { let id,
var d = [String: String]() let text = onlyUIText(v)
d[id] = v else {
return MPAK.Many([id], d) return nil
} }
return v var d = [String: String]()
d[id] = v
return MPAK.Many([id], d)
} }
.eraseToAnyPublisher(), .eraseToAnyPublisher(),
&subscriptions &subscriptions