diff --git a/packages/editor/src/components/collab-sidebar/index.js b/packages/editor/src/components/collab-sidebar/index.js index b773b3d4e30c14..fbb3e941d7edbb 100644 --- a/packages/editor/src/components/collab-sidebar/index.js +++ b/packages/editor/src/components/collab-sidebar/index.js @@ -222,7 +222,7 @@ export default function CollabSidebar() { const { enableComplementaryArea } = useDispatch( interfaceStore ); const { getActiveComplementaryArea } = useSelect( interfaceStore ); - const { postId, postType, postStatus, threads } = useSelect( ( select ) => { + const { postId, postType, threads } = useSelect( ( select ) => { const { getCurrentPostId, getCurrentPostType } = select( editorStore ); const _postId = getCurrentPostId(); const data = @@ -237,8 +237,6 @@ export default function CollabSidebar() { return { postId: _postId, postType: getCurrentPostType(), - postStatus: - select( editorStore ).getEditedPostAttribute( 'status' ), threads: data, }; }, [] ); @@ -327,10 +325,6 @@ export default function CollabSidebar() { } ); } - if ( postStatus === 'publish' ) { - return null; // or maybe return some message indicating no threads are available. - } - const AddCommentComponent = blockCommentId ? AddCommentToolbarButton : AddCommentButton;