Refactoring
This commit is contained in:
parent
11e8f1b3f8
commit
29c4f578e8
|
@ -26,7 +26,7 @@ class StatusListViewModel: ObservableObject {
|
||||||
self?.statuses = Dictionary(uniqueKeysWithValues: $0.reduce([], +).map { ($0.id, $0) })
|
self?.statuses = Dictionary(uniqueKeysWithValues: $0.reduce([], +).map { ($0.id, $0) })
|
||||||
})
|
})
|
||||||
.assignErrorsToAlertItem(to: \.alertItem, on: self)
|
.assignErrorsToAlertItem(to: \.alertItem, on: self)
|
||||||
.map { $0.map { section in section.map(\.id) } }
|
.map { $0.map { $0.map(\.id) } }
|
||||||
.assign(to: &$statusIDs)
|
.assign(to: &$statusIDs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue