From ef321464a271f6aae58b46decd6df62b013519ea Mon Sep 17 00:00:00 2001 From: Timo Pagel Date: Thu, 23 Nov 2023 14:29:21 +0100 Subject: [PATCH 1/2] fix: Remove incompatible version --- .../circular-heatmap/circular-heatmap.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/component/circular-heatmap/circular-heatmap.component.ts b/src/app/component/circular-heatmap/circular-heatmap.component.ts index ad1bc807..8af1c8f9 100644 --- a/src/app/component/circular-heatmap/circular-heatmap.component.ts +++ b/src/app/component/circular-heatmap/circular-heatmap.component.ts @@ -688,7 +688,7 @@ export class CircularHeatmapComponent implements OnInit { } reColorHeatmap() { console.log('recolor'); - for (var index = 0; index < this.ALL_CARD_DATA.length; index += 1) { + for (var index = 0; index < this.ALL_CARD_DATA.length; index++) { let cntAll: number = 0; let cntTrue: number = 0; var _self = this; @@ -756,6 +756,11 @@ export class CircularHeatmapComponent implements OnInit { } loadState() { var content = localStorage.getItem('dataset'); + // @ts-ignore + if (this.ALL_CARD_DATA[0]['Task'] != null) { + console.log("Found outdated dataset, removing") + localStorage.removeItem('dataset'); + } if (content != null) { this.ALL_CARD_DATA = JSON.parse(content); } From 26fc22f8ac0dd1903d590bb2995920d66507779a Mon Sep 17 00:00:00 2001 From: Timo Pagel Date: Thu, 23 Nov 2023 14:32:17 +0100 Subject: [PATCH 2/2] chore: Beautify code --- .../component/circular-heatmap/circular-heatmap.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/component/circular-heatmap/circular-heatmap.component.ts b/src/app/component/circular-heatmap/circular-heatmap.component.ts index 8af1c8f9..74031326 100644 --- a/src/app/component/circular-heatmap/circular-heatmap.component.ts +++ b/src/app/component/circular-heatmap/circular-heatmap.component.ts @@ -758,7 +758,7 @@ export class CircularHeatmapComponent implements OnInit { var content = localStorage.getItem('dataset'); // @ts-ignore if (this.ALL_CARD_DATA[0]['Task'] != null) { - console.log("Found outdated dataset, removing") + console.log("Found outdated dataset, removing"); localStorage.removeItem('dataset'); } if (content != null) {