Skip to content

Commit

Permalink
fix: adding points when no points in store
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercchase committed Oct 25, 2024
1 parent 156c370 commit f5e4add
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class TimeseriesResultsMenuComponent implements OnInit, OnDestroy {
}));

let thing: string = localStorage.getItem('timeseries-points')
if(thing.length > 0) {
if(thing && thing.length > 0) {
let previous_points: any[] = thing?.split(';');
if(previous_points.length > 0) {
console.log(previous_points)
Expand Down

0 comments on commit f5e4add

Please sign in to comment.