Переглянути джерело

dont throw exception for unknown types

Sven Klemm 7 роки тому
батько
коміт
9d5b4cb91d
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      public/app/plugins/datasource/postgres/sql_part.ts

+ 1 - 1
public/app/plugins/datasource/postgres/sql_part.ts

@@ -6,7 +6,7 @@ var index = [];
 function createPart(part): any {
   var def = index[part.type];
   if (!def) {
-    throw { message: 'Could not find query part ' + part.type };
+    return null;
   }
 
   return new SqlPart(part, def);