From 36698cddc2fa8cf16d40c20e8dc98ffb141d6493 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 1 Oct 2017 22:00:42 +0200 Subject: [PATCH] client/posts: fix promise chaining --- client/js/controllers/post_list_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }