Skip to content

Commit

Permalink
Remove onActionPerformed
Browse files Browse the repository at this point in the history
  • Loading branch information
mikachan committed Nov 20, 2024
1 parent e438496 commit 04a7ba4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { store as noticesStore } from '@wordpress/notices';
*/
import { getItemTitle } from '../../utils/get-item-title';

const SetAsHomepageModal = ( { items, closeModal, onActionPerformed } ) => {
const SetAsHomepageModal = ( { items, closeModal } ) => {
const [ item ] = items;
const pageTitle = getItemTitle( item );
const { showOnFront, currentHomePage, isSavingSiteSettings } = useSelect(
Expand Down Expand Up @@ -77,8 +77,6 @@ const SetAsHomepageModal = ( { items, closeModal, onActionPerformed } ) => {
createSuccessNotice( __( 'Homepage updated' ), {
type: 'snackbar',
} );

onActionPerformed?.( items );
} catch ( error ) {
const typedError = error;
const errorMessage =
Expand Down

0 comments on commit 04a7ba4

Please sign in to comment.