Skip to content

Commit 4ee60de

Browse files
committed
Fixed a bug: when a chip is selected other than group, chips were not selected correctly
1 parent f2587c9 commit 4ee60de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/component/circular-heatmap/circular-heatmap.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export class CircularHeatmapComponent implements OnInit {
209209
).forEach((key, index) => {
210210
if (key === currChipValue) {
211211
console.log('group selected');
212-
this.teamVisible = this.teamGroups[key];
212+
this.teamVisible = [...this.teamGroups[key]];
213213
}
214214
});
215215
}
@@ -235,6 +235,7 @@ export class CircularHeatmapComponent implements OnInit {
235235
this.teamVisible.push(currChipValue);
236236
this.selectedTeamChips = [];
237237
} else {
238+
this.selectedTeamChips = [];
238239
this.teamVisible = this.teamVisible.filter(o => o !== currChipValue);
239240
}
240241
console.log('Selected Chips', this.selectedTeamChips);

0 commit comments

Comments
 (0)