Fix bug that was causing new feeds to be created with and empty string name
This commit is contained in:
parent
0b9522261e
commit
55da318503
@ -91,9 +91,12 @@ class AddFeedViewController: UITableViewController, AddContainerViewControllerCh
|
|||||||
}
|
}
|
||||||
|
|
||||||
delegate?.processingDidBegin()
|
delegate?.processingDidBegin()
|
||||||
|
|
||||||
|
let feedName = (nameTextField.text?.isEmpty ?? true) ? nil : nameTextField.text
|
||||||
|
|
||||||
BatchUpdate.shared.start()
|
BatchUpdate.shared.start()
|
||||||
|
|
||||||
account!.createFeed(url: url.absoluteString, name: nameTextField.text, container: container) { result in
|
account!.createFeed(url: url.absoluteString, name: feedName, container: container) { result in
|
||||||
|
|
||||||
BatchUpdate.shared.end()
|
BatchUpdate.shared.end()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user