fix(sql-lab): do not replace undefined schema with empty object (#19664)

This commit is contained in:
Ville Brofeldt 2022-04-12 15:13:03 +03:00 committed by GitHub
parent 3a231f6b87
commit 87d47987b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -791,7 +791,7 @@ export function queryEditorSetSchema(queryEditor, schema) {
dispatch({
type: QUERY_EDITOR_SET_SCHEMA,
queryEditor: queryEditor || {},
schema: schema || {},
schema,
}),
)
.catch(() =>

View File

@ -61,7 +61,7 @@ export type Query = {
query: { limit: number };
};
resultsKey: string | null;
schema: string;
schema?: string;
sql: string;
sqlEditorId: string;
state: QueryState;