diff --git a/src/app/component/circular-heatmap/circular-heatmap.component.ts b/src/app/component/circular-heatmap/circular-heatmap.component.ts index ad1bc807..74031326 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); }