mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +00:00
fix(sqllab): autocomplete and delete tabs (#34781)
This commit is contained in:
@@ -286,8 +286,6 @@ const SqlEditor: FC<Props> = ({
|
||||
|
||||
const SqlFormExtension = extensionsRegistry.get('sqleditor.extension.form');
|
||||
|
||||
const isTempId = (value: unknown): boolean => Number.isNaN(Number(value));
|
||||
|
||||
const startQuery = useCallback(
|
||||
(ctasArg = false, ctas_method = CtasEnum.Table) => {
|
||||
if (!database) {
|
||||
@@ -979,9 +977,7 @@ const SqlEditor: FC<Props> = ({
|
||||
{({ height }) =>
|
||||
isActive && (
|
||||
<AceEditorWrapper
|
||||
autocomplete={
|
||||
autocompleteEnabled && !isTempId(queryEditor.id)
|
||||
}
|
||||
autocomplete={autocompleteEnabled}
|
||||
onBlur={onSqlChanged}
|
||||
onChange={onSqlChanged}
|
||||
queryEditorId={queryEditor.id}
|
||||
|
||||
Reference in New Issue
Block a user