diff --git a/packages/block-library/src/post-title/edit.js b/packages/block-library/src/post-title/edit.js index 63b8c103171fee..3409165e0a8014 100644 --- a/packages/block-library/src/post-title/edit.js +++ b/packages/block-library/src/post-title/edit.js @@ -59,15 +59,12 @@ export default function PostTitleEdit( { ); const { saveEntityRecord } = useDispatch( coreStore ); - const debouncedSaveTitle = useDebounce( ( newTitle ) => { + const setTitle = useDebounce( ( newTitle ) => { saveEntityRecord( 'postType', 'post', { id: postId, title: newTitle, } ); }, 500 ); - const setTitle = ( newTitle ) => { - debouncedSaveTitle( newTitle ); - }; const [ link ] = useEntityProp( 'postType', postType, 'link', postId ); const onSplitAtEnd = () => { insertBlocksAfter( createBlock( getDefaultBlockName() ) );