fixed overshaddowed variable

This commit is contained in:
Nick Brown 2021-08-17 12:01:14 +01:00
parent 7895451258
commit 0982fdeb24
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ export default class TeamsMembershipUpdater extends React.Component<ITeamsMember
this.addError(err2.message, err2); this.addError(err2.message, err2);
return; return;
} }
res2.value = res2.value.sort((a, b) => a.displayName.localeCompare(b.displayName)); res2.value = res2.value.sort((a1, b1) => a1.displayName.localeCompare(b1.displayName));
this.setState({...this.state, selectionDetails: item, groupOwners: _owners, stage: Stage.Ready, privateChannels: res2.value.length === 0 ? [] : [{ key: 'null', text: strings.noChannel }].concat(res2.value.map(r => ({ key: r.id, text: r.displayName }))) }); this.setState({...this.state, selectionDetails: item, groupOwners: _owners, stage: Stage.Ready, privateChannels: res2.value.length === 0 ? [] : [{ key: 'null', text: strings.noChannel }].concat(res2.value.map(r => ({ key: r.id, text: r.displayName }))) });
}); });
} }