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

View File

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