Refactoring

This commit is contained in:
Justin Mazzocchi 2020-08-29 23:04:14 -07:00
parent 11e8f1b3f8
commit 29c4f578e8
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class StatusListViewModel: ObservableObject {
self?.statuses = Dictionary(uniqueKeysWithValues: $0.reduce([], +).map { ($0.id, $0) })
})
.assignErrorsToAlertItem(to: \.alertItem, on: self)
.map { $0.map { section in section.map(\.id) } }
.map { $0.map { $0.map(\.id) } }
.assign(to: &$statusIDs)
}
}