client/posts: fix promise chaining
This commit is contained in:
parent
1c4c5c5f91
commit
36698cddc2
|
@ -65,7 +65,7 @@ class PostListController {
|
||||||
Promise.all(
|
Promise.all(
|
||||||
this._bulkEditTags.map(tag =>
|
this._bulkEditTags.map(tag =>
|
||||||
e.detail.post.tags.addByName(tag)))
|
e.detail.post.tags.addByName(tag)))
|
||||||
.then(() => { e.detail.post.save(); })
|
.then(e.detail.post.save())
|
||||||
.catch(error => window.alert(error.message));
|
.catch(error => window.alert(error.message));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue