fix(plugin-sql-editor): CB420 throw error if content not provided

This commit is contained in:
Wroud
2020-11-15 02:27:37 +03:00
parent e042083b09
commit cccbd502f0
@@ -138,8 +138,7 @@ export class SqlEditorService {
defaultSchema?: string
): Promise<void> {
if (!contextId) {
console.error('updateSqlContext contextId not provided');
return;
throw new Error('updateSqlContext contextId not provided');
}
await this.gql.sdk.sqlContextSetDefaults({
connectionId,