mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-04-27 15:07:44 +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(^{
|
return savePromise.then(^{
|
||||||
NSLog(@"%@ post at path %@", verb, path);
|
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
|
// update our post because "new" may have changed, which is essential to correct operation
|
||||||
self.post = newPost;
|
[self configureWithPost:newPost];
|
||||||
if (self.postUpdatedBlock) {
|
if (self.postUpdatedBlock) {
|
||||||
self.postUpdatedBlock(self.post);
|
self.postUpdatedBlock(self.post);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue