fix(sqllab): autocomplete and delete tabs (#34781)

This commit is contained in:
JUST.in DO IT
2025-09-03 10:16:51 -07:00
committed by GitHub
parent b0d3f0f0d4
commit cefd046ea0
4 changed files with 32 additions and 15 deletions

View File

@@ -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}