client/posts: fix promise chaining
This commit is contained in:
parent
1c4c5c5f91
commit
36698cddc2
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue