mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-04-24 14:37:42 +00:00
use -configureWithPost: to update the UI after saving
This commit is contained in:
parent
0b9e88cc59
commit
5b59188055
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue