mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Revert latest change
This commit is contained in:
parent
90966a919a
commit
3b31102347
1 changed files with 16 additions and 22 deletions
|
@ -288,8 +288,6 @@ export default class PostsContextMenu extends Component {
|
|||
@task
|
||||
*unschedulePostsTask() {
|
||||
const updatedModels = this.selectionList.availableModels;
|
||||
try {
|
||||
// Perform the bulk edit action to unschedule the posts
|
||||
yield this.performBulkEdit('unschedule');
|
||||
this.notifications.showNotification(this.#getToastMessage('unscheduled'), {type: 'success'});
|
||||
|
||||
|
@ -309,11 +307,7 @@ export default class PostsContextMenu extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
// Remove posts that no longer match the filter
|
||||
this.updateFilteredPosts();
|
||||
} catch (error) {
|
||||
this.notifications.showAPIError(error, {key: `${this.type}.unschedule.failed`});
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue