mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
refactor(sqllab): Remove tableOptions from redux state (#23488)
This commit is contained in:
@@ -35,7 +35,6 @@ import {
|
||||
collapseTable,
|
||||
expandTable,
|
||||
queryEditorSetSchema,
|
||||
queryEditorSetTableOptions,
|
||||
setDatabases,
|
||||
addDangerToast,
|
||||
resetState,
|
||||
@@ -218,15 +217,6 @@ const SqlEditorLeftBar = ({
|
||||
[dispatch, queryEditor],
|
||||
);
|
||||
|
||||
const handleTablesLoad = useCallback(
|
||||
(options: Array<any>) => {
|
||||
if (queryEditor) {
|
||||
dispatch(queryEditorSetTableOptions(queryEditor, options));
|
||||
}
|
||||
},
|
||||
[dispatch, queryEditor],
|
||||
);
|
||||
|
||||
const handleDbList = useCallback(
|
||||
(result: DatabaseObject) => {
|
||||
dispatch(setDatabases(result));
|
||||
@@ -256,7 +246,6 @@ const SqlEditorLeftBar = ({
|
||||
onDbChange={onDbChange}
|
||||
onSchemaChange={handleSchemaChange}
|
||||
onTableSelectChange={onTablesChange}
|
||||
onTablesLoad={handleTablesLoad}
|
||||
schema={schema}
|
||||
tableValue={selectedTableNames}
|
||||
sqlLabMode
|
||||
|
||||
Reference in New Issue
Block a user