client/posts: fix promise chaining

This commit is contained in:
rr- 2017-10-01 22:00:42 +02:00
parent 1c4c5c5f91
commit 36698cddc2

View file

@ -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));
}