Skip to content

Commit

Permalink
Rename saveMenuItems to saveNavigationPost
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jun 16, 2020
1 parent 3099e16 commit 0552b25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/edit-navigation/src/components/menu-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const NavigationBlockEditorProvider = ( {
} ) => {
const isLargeViewport = useViewportMatch( 'medium' );
const [ blocks, onInput, onChange ] = useNavigationBlockEditor( post );
const { saveMenuItems } = useDispatch( 'core/edit-navigation' );
const save = () => saveMenuItems( post );
const { saveNavigationPost } = useDispatch( 'core/edit-navigation' );
const save = () => saveNavigationPost( post );
return (
<BlockEditorProvider
value={ blocks }
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-navigation/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const createMissingMenuItems = serializeProcessing( function* ( post ) {
} );
} );

export const saveMenuItems = serializeProcessing( function* ( post ) {
export const saveNavigationPost = serializeProcessing( function* ( post ) {
const menuId = post.meta.menuId;
const menuItemsByClientId = mapMenuItemsByClientId(
yield resolveMenuItems( menuId ),
Expand Down

0 comments on commit 0552b25

Please sign in to comment.