aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorrr-2017-10-01 22:00:42 +0200
committerrr-2017-10-01 22:00:42 +0200
commit36698cddc2fa8cf16d40c20e8dc98ffb141d6493 (patch)
tree87852754be39d578e8ca577c42d6e7e806b71757 /client
parent1c4c5c5f91dbce7234796daddbb74923638659e7 (diff)
client/posts: fix promise chaining
Diffstat (limited to 'client')
-rw-r--r--client/js/controllers/post_list_controller.js2
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));
}

© 2015 - 2026 Jakob L. Kreuze