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
  • Loading branch information
villebro authored Apr 12, 2022
1 parent 3a231f6 commit 87d4798
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 87d4798

Please sign in to comment.