diff --git a/app/assets/scripts/components/documents/single-view/document-body.js b/app/assets/scripts/components/documents/single-view/document-body.js index 855f8e41..3a158a1e 100644 --- a/app/assets/scripts/components/documents/single-view/document-body.js +++ b/app/assets/scripts/components/documents/single-view/document-body.js @@ -1076,8 +1076,9 @@ const htmlAtbdContentSections = [ { label: 'Reviewer Information', id: 'reviewer_info', - shouldRender: ({ atbd }) => { + shouldRender: ({ atbd, printMode }) => { if (!atbd) return false; + if (printMode) return false; // Should not render in the PDF preview // Render if there are reviewers with the role 'Document Reviewer' const contactsLink = atbd?.contacts_link || []; @@ -1294,43 +1295,6 @@ const pdfAtbdContentSections = [ })); } }, - { - label: 'Reviewer Information', - id: 'reviewer_info', - shouldRender: ({ atbd }) => { - if (!atbd) return false; - - // Render if there are reviewers with the role 'Document Reviewer' - const contactsLink = atbd?.contacts_link || []; - - for (const { roles } of contactsLink) { - if (roles.includes('Document Reviewer')) { - return true; - } - } - return false; - }, - render: ({ element, atbd, printMode, children }) => { - if (!atbd) { - return null; - } - return ( - - {React.Children.count(children) ? ( - children - ) : ( -

There are no reviewers associated with this document

- )} -
- ); - } - }, { label: 'References', id: 'references',