Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdotson committed Feb 8, 2022
1 parent 59469c4 commit 146bfe5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions superset-frontend/src/SqlLab/actions/sqlLab.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,11 @@ export function queryEditorSetSchema(queryEditor, schema) {

return sync
.then(() =>
dispatch({ type: QUERY_EDITOR_SET_SCHEMA, queryEditor: (queryEditor || {}), schema: (schema || {}) })
dispatch({
type: QUERY_EDITOR_SET_SCHEMA,
queryEditor: queryEditor || {},
schema: schema || {},
}),
)
.catch(() =>
dispatch(
Expand All @@ -796,7 +800,7 @@ export function queryEditorSetSchema(queryEditor, schema) {
'An error occurred while setting the tab schema. Please contact your administrator.',
),
),
)
),
);
};
}
Expand Down

0 comments on commit 146bfe5

Please sign in to comment.