From 0982fdeb244ff5b626e5ce34d08fd21cc5917ba3 Mon Sep 17 00:00:00 2001 From: Nick Brown Date: Tue, 17 Aug 2021 12:01:14 +0100 Subject: [PATCH] fixed overshaddowed variable --- .../components/TeamsMembershipUpdater.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/react-teams-membership-updater/src/webparts/teamsMembershipUpdater/components/TeamsMembershipUpdater.tsx b/samples/react-teams-membership-updater/src/webparts/teamsMembershipUpdater/components/TeamsMembershipUpdater.tsx index d76c62703..b89e43639 100644 --- a/samples/react-teams-membership-updater/src/webparts/teamsMembershipUpdater/components/TeamsMembershipUpdater.tsx +++ b/samples/react-teams-membership-updater/src/webparts/teamsMembershipUpdater/components/TeamsMembershipUpdater.tsx @@ -149,7 +149,7 @@ export default class TeamsMembershipUpdater extends React.Component 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 }))) }); }); }