Kaynağa Gözat

dont throw exception for unknown types

Sven Klemm 7 yıl önce
ebeveyn
işleme
9d5b4cb91d

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

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