0
Fork 0
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:
Daniël van der Winden 2024-09-02 12:27:11 +02:00
parent 90966a919a
commit 3b31102347

View file

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