Skip to content

Commit dc2def1

Browse files
committed
Teams: Fixed: Deleting team killed the group memberships
1 parent b43c39c commit dc2def1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/component/teams-groups-editor/teams-groups-editor.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ export class TeamsGroupsEditorComponent implements OnChanges {
187187

188188
onDeleteTeam(team: TeamName) {
189189
this.localCopyTeams = this.localCopyTeams.filter(t => t !== team);
190+
// Remove team for any groups
190191
for (let group in this.localCopyTeamGroups) {
191-
// eslint-disable-next-line
192-
this.localCopyTeamGroups[group] = this.localCopyTeamGroups[group].filter(team => team !== team); // eslint-disable-line
192+
this.localCopyTeamGroups[group] = this.localCopyTeamGroups[group].filter(t => t !== team);
193193
}
194194
}
195195

0 commit comments

Comments
 (0)