@@ -34,14 +34,16 @@ extension BusUI { | |||||
textUI, | textUI, | ||||
$v | $v | ||||
.removeDuplicates() | .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(), | .eraseToAnyPublisher(), | ||||
&subscriptions | &subscriptions | ||||