Skip to content

Commit 23959a2

Browse files
authored
fix: Reset implementation
1 parent c4e4bfc commit 23959a2

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

Diff for: src/app/component/circular-heatmap/circular-heatmap.component.ts

+2-17
Original file line numberDiff line numberDiff line change
@@ -787,23 +787,8 @@ export class CircularHeatmapComponent implements OnInit {
787787
}
788788

789789
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()
807792
}
808793

809794
saveState() {

0 commit comments

Comments
 (0)