Browse Source

dont break on panels that dont have rawQuery set

Sven Klemm 7 years ago
parent
commit
eb170e741b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/plugins/datasource/postgres/postgres_query.ts

+ 1 - 1
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 {