fix test failures for timeInterval

This commit is contained in:
Sven Klemm 2018-09-05 10:03:16 +02:00
parent fd269945c9
commit e2c7b010ac

View File

@ -17,7 +17,7 @@ export class PostgresDatasource {
this.jsonData = instanceSettings.jsonData;
this.responseParser = new ResponseParser(this.$q);
this.queryModel = new PostgresQuery({});
this.interval = instanceSettings.jsonData.timeInterval;
this.interval = (instanceSettings.jsonData || {}).timeInterval;
}
interpolateVariable(value, variable) {