mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
fix(sql-lab): do not replace undefined schema with empty object (#19664)
This commit is contained in:
parent
3a231f6b87
commit
87d47987b7
@ -791,7 +791,7 @@ export function queryEditorSetSchema(queryEditor, schema) {
|
||||
dispatch({
|
||||
type: QUERY_EDITOR_SET_SCHEMA,
|
||||
queryEditor: queryEditor || {},
|
||||
schema: schema || {},
|
||||
schema,
|
||||
}),
|
||||
)
|
||||
.catch(() =>
|
||||
|
@ -61,7 +61,7 @@ export type Query = {
|
||||
query: { limit: number };
|
||||
};
|
||||
resultsKey: string | null;
|
||||
schema: string;
|
||||
schema?: string;
|
||||
sql: string;
|
||||
sqlEditorId: string;
|
||||
state: QueryState;
|
||||
|
Loading…
Reference in New Issue
Block a user