Skip to content

Commit

Permalink
Revert unintended changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtr committed Aug 9, 2024
1 parent 710fda6 commit 7e3a68f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type CoreNuxPlaceholder = {
*/
export function PagePatternsPlugin( props: PagePatternsPluginProps ) {
const { setOpenState } = useDispatch( pageLayoutStore );
//const { setUsedPageOrPatternsModal } = useDispatch( 'automattic/wpcom-welcome-guide' );
const { setUsedPageOrPatternsModal } = useDispatch( 'automattic/wpcom-welcome-guide' );
const { replaceInnerBlocks } = useDispatch( 'core/block-editor' );
const { editPost } = useDispatch( 'core/editor' );
const { toggleFeature } = useDispatch( 'core/edit-post' );
Expand Down Expand Up @@ -118,8 +118,8 @@ export function PagePatternsPlugin( props: PagePatternsPluginProps ) {

const handleClose = useCallback( () => {
setOpenState( 'CLOSED' );
//setUsedPageOrPatternsModal?.();
}, [ setOpenState /*setUsedPageOrPatternsModal*/ ] );
setUsedPageOrPatternsModal?.();
}, [ setOpenState, setUsedPageOrPatternsModal ] );

return (
<PagePatternModal
Expand Down

0 comments on commit 7e3a68f

Please sign in to comment.