mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
support non-nested menu entries
This commit is contained in:
parent
95a5a61337
commit
12600a0e95
@ -205,7 +205,11 @@ export class PostgresQueryCtrl extends QueryCtrl {
|
||||
}
|
||||
|
||||
addSelectPart(selectParts, cat, subitem) {
|
||||
this.queryModel.addSelectPart(selectParts, subitem.value);
|
||||
if ("submenu" in cat) {
|
||||
this.queryModel.addSelectPart(selectParts, subitem.value);
|
||||
} else {
|
||||
this.queryModel.addSelectPart(selectParts, cat.value);
|
||||
}
|
||||
this.panelCtrl.refresh();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user