Skip to content

Commit

Permalink
fix(sql-lab): do not replace undefined schema with empty object (#19664)
Browse files Browse the repository at this point in the history
(cherry picked from commit 87d4798)
  • Loading branch information
villebro committed Apr 15, 2022
1 parent 95e5b59 commit d657d81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superset-frontend/src/SqlLab/actions/sqlLab.js
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ export function queryEditorSetSchema(queryEditor, schema) {
dispatch({
type: QUERY_EDITOR_SET_SCHEMA,
queryEditor: queryEditor || {},
schema: schema || {},
schema,
}),
)
.catch(() =>
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/SqlLab/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export type Query = {
query: { limit: number };
};
resultsKey: string | null;
schema: string;
schema?: string;
sql: string;
sqlEditorId: string;
state: QueryState;
Expand Down

0 comments on commit d657d81

Please sign in to comment.