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