diff options
| author | rr- | 2017-10-01 22:00:42 +0200 |
|---|---|---|
| committer | rr- | 2017-10-01 22:00:42 +0200 |
| commit | 36698cddc2fa8cf16d40c20e8dc98ffb141d6493 (patch) | |
| tree | 87852754be39d578e8ca577c42d6e7e806b71757 /client | |
| parent | 1c4c5c5f91dbce7234796daddbb74923638659e7 (diff) | |
client/posts: fix promise chaining
Diffstat (limited to 'client')
| -rw-r--r-- | client/js/controllers/post_list_controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/js/controllers/post_list_controller.js b/client/js/controllers/post_list_controller.js index 039ca18..f60cb8b 100644 --- a/client/js/controllers/post_list_controller.js +++ b/client/js/controllers/post_list_controller.js @@ -65,7 +65,7 @@ class PostListController { Promise.all( this._bulkEditTags.map(tag => e.detail.post.tags.addByName(tag))) - .then(() => { e.detail.post.save(); }) + .then(e.detail.post.save()) .catch(error => window.alert(error.message)); } |