Skip to content

Commit

Permalink
fix: Reset implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
wurstbrot authored Oct 2, 2024
1 parent c4e4bfc commit 23959a2
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/app/component/circular-heatmap/circular-heatmap.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,23 +787,8 @@ export class CircularHeatmapComponent implements OnInit {
}

ResetIsImplemented() {
for (var x = 0; x < this.ALL_CARD_DATA.length; x++) {
if (this.ALL_CARD_DATA[x]['Done%'] > 0) {
for (var y = 0; y < this.ALL_CARD_DATA[x]['Activity'].length; y++) {
var currActivityTeamsImplemented =
this.ALL_CARD_DATA[x]['Activity'][y]['teamsImplemented'];
(
Object.keys(
currActivityTeamsImplemented
) as (keyof typeof currActivityTeamsImplemented)[]
).forEach((key, index) => {
currActivityTeamsImplemented[key] = false;
});
}
this.reColorHeatmap();
}
}
this.saveState();
localStorage.removeItem('dataset');
loadState()
}

saveState() {
Expand Down

0 comments on commit 23959a2

Please sign in to comment.