Remove unnecessary cell reload that was causing crashes. Issue #1535
This commit is contained in:
parent
88f565e03f
commit
09c8ca9898
|
@ -1167,7 +1167,7 @@ private extension MasterFeedViewController {
|
||||||
feed.rename(to: name) { result in
|
feed.rename(to: name) { result in
|
||||||
switch result {
|
switch result {
|
||||||
case .success:
|
case .success:
|
||||||
self?.reloadNode(node)
|
break
|
||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
self?.presentError(error)
|
self?.presentError(error)
|
||||||
}
|
}
|
||||||
|
@ -1176,7 +1176,7 @@ private extension MasterFeedViewController {
|
||||||
folder.rename(to: name) { result in
|
folder.rename(to: name) { result in
|
||||||
switch result {
|
switch result {
|
||||||
case .success:
|
case .success:
|
||||||
self?.reloadNode(node)
|
break
|
||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
self?.presentError(error)
|
self?.presentError(error)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue