From 9d5b4cb91d28bd428a5f8c5e5de04e7324348d30 Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Tue, 10 Jul 2018 14:45:36 +0200 Subject: [PATCH] dont throw exception for unknown types --- public/app/plugins/datasource/postgres/sql_part.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/postgres/sql_part.ts b/public/app/plugins/datasource/postgres/sql_part.ts index 8de764c45e9..e39a339c9da 100644 --- a/public/app/plugins/datasource/postgres/sql_part.ts +++ b/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);