File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/app/component/circular-heatmap Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments