Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(result) => {
const timeseriesList = deserializeArray(Timeseries, result);
timeseriesList.forEach((entry) => {
entry.url = apiUrl;
});
observer.next(timeseriesList);
},
(error) => observer.error(error),
private loadTimeseries() {
const json = this.localStorage.loadTextual(TIMESERIES_CACHE_PARAM);
if (json) {
const result = deserializeArray(Timeseries, json);
this.timeseries = result;
}
}
}
(result) => {
const timeseriesList = deserializeArray(Timeseries, result);
timeseriesList.forEach((entry) => {
entry.url = apiUrl;
});
observer.next(timeseriesList);
},
(error) => observer.error(error),