Skip to content

Commit

Permalink
Fix: Trash Post action and permanently delete post action do not show…
Browse files Browse the repository at this point in the history
… errors for single item executions. (#60597)

Co-authored-by: jorgefilipecosta <[email protected]>
  • Loading branch information
jorgefilipecosta and jorgefilipecosta authored Apr 9, 2024
1 parent 5e99454 commit e1384bb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/editor/src/components/post-actions/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ export const trashPostAction = {
[ ...errorMessages ].join( ',' )
);
}
createErrorNotice( errorMessage, {
type: 'snackbar',
} );
}
createErrorNotice( errorMessage, {
type: 'snackbar',
} );
}
if ( onActionPerformed ) {
onActionPerformed( posts );
Expand Down Expand Up @@ -260,10 +260,10 @@ export function usePermanentlyDeletePostAction() {
[ ...errorMessages ].join( ',' )
);
}
createErrorNotice( errorMessage, {
type: 'snackbar',
} );
}
createErrorNotice( errorMessage, {
type: 'snackbar',
} );
}
},
} ),
Expand Down

0 comments on commit e1384bb

Please sign in to comment.