mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
only show first/last aggregate when timescaledb is enabled
This commit is contained in:
parent
e12d07dd68
commit
c90eb45cef
@ -114,9 +114,11 @@ export class PostgresQueryCtrl extends QueryCtrl {
|
||||
],
|
||||
};
|
||||
|
||||
// first and last are timescaledb specific
|
||||
aggregates.submenu.push({ text: 'First', value: 'first' });
|
||||
aggregates.submenu.push({ text: 'Last', value: 'last' });
|
||||
// first and last aggregate are timescaledb specific
|
||||
if (this.datasource.jsonData.timescaledb === true) {
|
||||
aggregates.submenu.push({ text: 'First', value: 'first' });
|
||||
aggregates.submenu.push({ text: 'Last', value: 'last' });
|
||||
}
|
||||
|
||||
this.selectMenu.push(aggregates);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user