use -configureWithPost: to update the UI after saving

This commit is contained in:
Sami Samhuri 2015-05-03 17:01:25 -07:00
parent 0b9e88cc59
commit 5b59188055

View file

@ -278,9 +278,8 @@
return savePromise.then(^{
NSLog(@"%@ post at path %@", verb, path);
// TODO: something better than this
// update our post because "new" may have changed, which is essential to correct operation
self.post = newPost;
[self configureWithPost:newPost];
if (self.postUpdatedBlock) {
self.postUpdatedBlock(self.post);
}