Skip to content

Commit

Permalink
fix(sql-lab): do not replace undefined schema with empty object (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored and philipher29 committed Jun 9, 2022
1 parent 6fc645a commit 9efec67
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 @@ -809,7 +809,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 9efec67

Please sign in to comment.