mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
fix(sql-lab): do not replace undefined schema with empty object (#19664)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user