From 3d1af27301216cd4a04c54b2d765c3f24b23ff6e Mon Sep 17 00:00:00 2001 From: xkopenreview Date: Thu, 19 Sep 2024 12:31:05 -0400 Subject: [PATCH] pass default sac name for sac only --- .../webfield/ProgramChairConsole/PaperStatusMenuBar.js | 5 +++-- components/webfield/SeniorAreaChairConsole/PaperStatus.js | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/webfield/ProgramChairConsole/PaperStatusMenuBar.js b/components/webfield/ProgramChairConsole/PaperStatusMenuBar.js index d7fc0645c..2fd0f446c 100644 --- a/components/webfield/ProgramChairConsole/PaperStatusMenuBar.js +++ b/components/webfield/ProgramChairConsole/PaperStatusMenuBar.js @@ -15,6 +15,7 @@ const PaperStatusMenuBar = ({ setPaperStatusTabData, reviewRatingName, noteContentField, + defaultSeniorAreaChairName, }) => { const { metaReviewRecommendationName, @@ -28,7 +29,7 @@ const PaperStatusMenuBar = ({ customStageInvitations = [], additionalMetaReviewFields = [], reviewerName, - seniorAreaChairName = 'Senior_Area_Chairs', + seniorAreaChairName = defaultSeniorAreaChairName, officialReviewName, officialMetaReviewName = 'Meta_Review', areaChairName = 'Area_Chairs', @@ -48,7 +49,7 @@ const PaperStatusMenuBar = ({ author: ['note.content.authors.value', 'note.content.authorids.value'], keywords: ['note.content.keywords.value'], [formattedReviewerName]: ['reviewers'], - [formattedSACName]: ['metaReviewData.seniorAreaChairs'], + ...(formattedSACName && { [formattedSACName]: ['metaReviewData.seniorAreaChairs'] }), [`num${upperFirst(formattedReviewerName)}Assigned`]: [ 'reviewProgressData.numReviewersAssigned', ], diff --git a/components/webfield/SeniorAreaChairConsole/PaperStatus.js b/components/webfield/SeniorAreaChairConsole/PaperStatus.js index ae6a8e4c8..70f4b53bf 100644 --- a/components/webfield/SeniorAreaChairConsole/PaperStatus.js +++ b/components/webfield/SeniorAreaChairConsole/PaperStatus.js @@ -194,6 +194,7 @@ const PaperStatus = ({ sacConsoleData }) => { setSelectedNoteIds={setSelectedNoteIds} setPaperStatusTabData={setPaperStatusTabData} reviewRatingName={reviewRatingName} + defaultSeniorAreaChairName="Senior_Area_Chairs" />

No {pluralizeString(submissionName.toLowerCase())} matching search criteria. @@ -209,6 +210,7 @@ const PaperStatus = ({ sacConsoleData }) => { setSelectedNoteIds={setSelectedNoteIds} setPaperStatusTabData={setPaperStatusTabData} reviewRatingName={reviewRatingName} + defaultSeniorAreaChairName="Senior_Area_Chairs" />