Browse Source

fix saving sql analytics unit (#457)

master
Dmitry Nalobin 4 years ago committed by GitHub
parent
commit
93dadd1e1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/panel/graph_panel/graph_ctrl.ts
  2. 1
      src/panel/graph_panel/models/datasource.ts

1
src/panel/graph_panel/graph_ctrl.ts

@ -884,6 +884,7 @@ class GraphCtrl extends MetricsPanelCtrl {
if(datasource.access !== 'proxy') {
throw new Error(`"${datasource.name}" datasource has "Browser" access type but only "Server" is supported`);
}
this._datasourceRequest.datasourceId = datasource.id;
this._datasourceRequest.type = datasource.type;
}
return this._datasourceRequest;

1
src/panel/graph_panel/models/datasource.ts

@ -1,4 +1,5 @@
export type DatasourceRequest = {
datasourceId?: string;
method: string,
data: Object,
params: Object,

Loading…
Cancel
Save