Михаил Капелько 10 months ago
parent
commit
95f66ab82c
1 changed files with 9 additions and 7 deletions
  1. +9
    -7
      Modules/BusX/BusUI/src/BusUI.ManyTextField.swift

+ 9
- 7
Modules/BusX/BusUI/src/BusUI.ManyTextField.swift View File

@@ -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


Loading…
Cancel
Save