From 23959a28fab7dfdc193458afef7d5bbd4f4b2378 Mon Sep 17 00:00:00 2001 From: Timo Pagel Date: Wed, 2 Oct 2024 06:09:40 +0200 Subject: [PATCH] fix: Reset implementation --- .../circular-heatmap.component.ts | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/app/component/circular-heatmap/circular-heatmap.component.ts b/src/app/component/circular-heatmap/circular-heatmap.component.ts index 32ef2ab5..6790d8ba 100644 --- a/src/app/component/circular-heatmap/circular-heatmap.component.ts +++ b/src/app/component/circular-heatmap/circular-heatmap.component.ts @@ -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() {