fix error handling for history query

This commit is contained in:
Alexander Zobnin
2018-04-26 20:25:37 +03:00
parent f0a5e7de8d
commit a20395f024
3 changed files with 2 additions and 9 deletions

View File

@@ -208,11 +208,7 @@ class ZabbixAPIDatasource {
return getHistoryPromise
.then(timeseries => this.applyDataProcessingFunctions(timeseries, target))
.then(timeseries => downsampleSeries(timeseries, options))
.catch(error => {
console.log(error);
return [];
});
.then(timeseries => downsampleSeries(timeseries, options));
}
getTrendValueType(target) {