From cccbd502f0e1fc14de5d4f044ff7eb9ece736741 Mon Sep 17 00:00:00 2001 From: Wroud Date: Sun, 15 Nov 2020 02:27:37 +0300 Subject: [PATCH] fix(plugin-sql-editor): CB420 throw error if content not provided --- webapp/packages/plugin-sql-editor/src/SqlEditorService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/packages/plugin-sql-editor/src/SqlEditorService.ts b/webapp/packages/plugin-sql-editor/src/SqlEditorService.ts index 2da7d4ff4e..8fd1a44c5c 100644 --- a/webapp/packages/plugin-sql-editor/src/SqlEditorService.ts +++ b/webapp/packages/plugin-sql-editor/src/SqlEditorService.ts @@ -138,8 +138,7 @@ export class SqlEditorService { defaultSchema?: string ): Promise { if (!contextId) { - console.error('updateSqlContext contextId not provided'); - return; + throw new Error('updateSqlContext contextId not provided'); } await this.gql.sdk.sqlContextSetDefaults({ connectionId,