diff --git a/packages/server-side-render/src/index.js b/packages/server-side-render/src/index.js index 5797d784743dd1..6baf0fc85b9fd4 100644 --- a/packages/server-side-render/src/index.js +++ b/packages/server-side-render/src/index.js @@ -23,7 +23,7 @@ const ExportedServerSideRender = withSelect( ( select ) => { // Since they aren't real posts, we don't want to use their ID // for server-side rendering. Since they use a string based ID, // we can assume real post IDs are numbers. - if ( currentPostId && typeof currentPostId.id === 'number' ) { + if ( currentPostId && typeof currentPostId === 'number' ) { return { currentPostId, };