File tree 1 file changed +2
-17
lines changed
src/app/component/circular-heatmap
1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -787,23 +787,8 @@ export class CircularHeatmapComponent implements OnInit {
787
787
}
788
788
789
789
ResetIsImplemented ( ) {
790
- for ( var x = 0 ; x < this . ALL_CARD_DATA . length ; x ++ ) {
791
- if ( this . ALL_CARD_DATA [ x ] [ 'Done%' ] > 0 ) {
792
- for ( var y = 0 ; y < this . ALL_CARD_DATA [ x ] [ 'Activity' ] . length ; y ++ ) {
793
- var currActivityTeamsImplemented =
794
- this . ALL_CARD_DATA [ x ] [ 'Activity' ] [ y ] [ 'teamsImplemented' ] ;
795
- (
796
- Object . keys (
797
- currActivityTeamsImplemented
798
- ) as ( keyof typeof currActivityTeamsImplemented ) [ ]
799
- ) . forEach ( ( key , index ) => {
800
- currActivityTeamsImplemented [ key ] = false ;
801
- } ) ;
802
- }
803
- this . reColorHeatmap ( ) ;
804
- }
805
- }
806
- this . saveState ( ) ;
790
+ localStorage . removeItem ( 'dataset' ) ;
791
+ loadState ( )
807
792
}
808
793
809
794
saveState ( ) {
You can’t perform that action at this time.
0 commit comments