From eb170e741b8b08f3680b289795f851fa3e859461 Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Sat, 7 Jul 2018 19:59:25 +0200 Subject: [PATCH] dont break on panels that dont have rawQuery set --- public/app/plugins/datasource/postgres/postgres_query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/postgres/postgres_query.ts b/public/app/plugins/datasource/postgres/postgres_query.ts index ef903ea3259..b8d3d107bb6 100644 --- a/public/app/plugins/datasource/postgres/postgres_query.ts +++ b/public/app/plugins/datasource/postgres/postgres_query.ts @@ -149,7 +149,7 @@ export default class PostgresQuery { render(interpolate?) { var target = this.target; - if (target.rawQuery) { + if (target.rawQuery || !('rawQuery' in target)) { if (interpolate) { return this.templateSrv.replace(target.rawSql, this.scopedVars, this.interpolateQueryStr); } else {