mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
chore(sqllab): Remove table metadata from state (#24371)
This commit is contained in:
@@ -51,7 +51,6 @@ const setup = (queryEditor: QueryEditor, store?: Store) =>
|
||||
queryEditorId={queryEditor.id}
|
||||
height="100px"
|
||||
hotkeys={[]}
|
||||
database={{}}
|
||||
onChange={jest.fn()}
|
||||
onBlur={jest.fn()}
|
||||
autocomplete
|
||||
|
||||
@@ -55,7 +55,6 @@ type AceEditorWrapperProps = {
|
||||
onBlur: (sql: string) => void;
|
||||
onChange: (sql: string) => void;
|
||||
queryEditorId: string;
|
||||
database: any;
|
||||
extendedTables?: Array<{ name: string; columns: any[] }>;
|
||||
height: string;
|
||||
hotkeys: HotKey[];
|
||||
@@ -86,7 +85,6 @@ const AceEditorWrapper = ({
|
||||
onBlur = () => {},
|
||||
onChange = () => {},
|
||||
queryEditorId,
|
||||
database,
|
||||
extendedTables = [],
|
||||
height,
|
||||
hotkeys,
|
||||
@@ -258,9 +256,7 @@ const AceEditorWrapper = ({
|
||||
const completer = {
|
||||
insertMatch: (editor: Editor, data: any) => {
|
||||
if (data.meta === 'table') {
|
||||
dispatch(
|
||||
addTable(queryEditor, database, data.value, queryEditor.schema),
|
||||
);
|
||||
dispatch(addTable(queryEditor, data.value, queryEditor.schema));
|
||||
}
|
||||
|
||||
let { caption } = data;
|
||||
|
||||
Reference in New Issue
Block a user