Skip to content

Commit c4466f8

Browse files
committed
Allow spaces in team and group names
1 parent 6818c35 commit c4466f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export class CircularHeatmapComponent implements OnInit {
288288

289289
toggleTeamGroupSelection(chip: MatChip) {
290290
chip.toggleSelected();
291-
let currChipValue = chip.value.replace(/\s/g, '');
291+
let currChipValue = chip.value.trim();
292292

293293
if (chip.selected) {
294294
this.selectedTeamChips = [currChipValue];
@@ -321,7 +321,7 @@ export class CircularHeatmapComponent implements OnInit {
321321

322322
toggleTeamSelection(chip: MatChip) {
323323
chip.toggleSelected();
324-
let currChipValue = chip.value.replace(/\s/g, '');
324+
let currChipValue = chip.value.trim();
325325
let prevSelectedChip = this.selectedTeamChips;
326326
if (chip.selected) {
327327
this.teamVisible.push(currChipValue);
@@ -342,7 +342,7 @@ export class CircularHeatmapComponent implements OnInit {
342342
console.log('updating chips', fromTeamGroup);
343343
// Re select chips
344344
this.matChipsArray.forEach(chip => {
345-
let currChipValue = chip.value.replace(/\s/g, '');
345+
let currChipValue = chip.value.trim();
346346

347347
if (this.teamVisible.includes(currChipValue)) {
348348
console.log(currChipValue);

0 commit comments

Comments
 (0)