diff --git a/packages/edit-site/src/components/post-edit/index.js b/packages/edit-site/src/components/post-edit/index.js index 97484c89ed670b..afcd814d43b7d7 100644 --- a/packages/edit-site/src/components/post-edit/index.js +++ b/packages/edit-site/src/components/post-edit/index.js @@ -33,7 +33,14 @@ const fieldsWithBulkEditSupport = [ ]; function PostEditForm( { postType, postId } ) { - const ids = useMemo( () => postId.split( ',' ), [ postId ] ); + const ids = useMemo( + () => + postId + .split( ',' ) + .map( ( id ) => parseInt( id, 10 ) ) + .filter( Number ), + [ postId ] + ); const { record, hasFinishedResolution } = useSelect( ( select ) => { const args = [ 'postType', postType, ids[ 0 ] ];