File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
web-ui/src/components/reviews Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,11 @@ const TeamReviews = ({ onBack, periodId }) => {
210210 } ;
211211
212212 const loadTeamMembers = ( ) => {
213- let members = [ ] ;
213+ // If we already have a list of team members, we should not overwrite the
214+ // list with the original list of team members.
215+ if ( teamMembers . length > 0 ) {
216+ return ;
217+ }
214218
215219 let source ;
216220 if ( ! approvalMode || ( isAdmin && showAll ) ) {
@@ -226,8 +230,7 @@ const TeamReviews = ({ onBack, periodId }) => {
226230 // Always filter the members down to existing selected assignments.
227231 // We do not want to add members that were not already selected.
228232 const memberIds = assignments . map ( a => a . revieweeId ) ;
229- members = source . filter ( m => memberIds . includes ( m . id ) ) ;
230-
233+ let members = source . filter ( m => memberIds . includes ( m . id ) ) ;
231234 setTeamMembers ( members ) ;
232235 } ;
233236
You can’t perform that action at this time.
0 commit comments