mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
chore(sqllab): Remove schemaOptions from redux store (#23257)
This commit is contained in:
@@ -36,7 +36,6 @@ import {
|
||||
expandTable,
|
||||
queryEditorSetSchema,
|
||||
queryEditorSetTableOptions,
|
||||
queryEditorSetSchemaOptions,
|
||||
setDatabases,
|
||||
addDangerToast,
|
||||
resetState,
|
||||
@@ -228,15 +227,6 @@ const SqlEditorLeftBar = ({
|
||||
[dispatch, queryEditor],
|
||||
);
|
||||
|
||||
const handleSchemasLoad = useCallback(
|
||||
(options: Array<any>) => {
|
||||
if (queryEditor) {
|
||||
dispatch(queryEditorSetSchemaOptions(queryEditor, options));
|
||||
}
|
||||
},
|
||||
[dispatch, queryEditor],
|
||||
);
|
||||
|
||||
const handleDbList = useCallback(
|
||||
(result: DatabaseObject) => {
|
||||
dispatch(setDatabases(result));
|
||||
@@ -265,7 +255,6 @@ const SqlEditorLeftBar = ({
|
||||
handleError={handleError}
|
||||
onDbChange={onDbChange}
|
||||
onSchemaChange={handleSchemaChange}
|
||||
onSchemasLoad={handleSchemasLoad}
|
||||
onTableSelectChange={onTablesChange}
|
||||
onTablesLoad={handleTablesLoad}
|
||||
schema={schema}
|
||||
|
||||
Reference in New Issue
Block a user