From b4e2406385e0cfbb9a8c23f093f7ec51042e8dbf Mon Sep 17 00:00:00 2001 From: Rafael Benitez Date: Tue, 20 May 2025 10:38:55 -0400 Subject: [PATCH] fix(Sqllab): Autocomplete got stuck in UI when open it too fast (#33522) --- superset-frontend/src/SqlLab/components/SqlEditor/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx b/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx index 8df7d4a0cee..85ba2ee0fce 100644 --- a/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx +++ b/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx @@ -325,6 +325,8 @@ const SqlEditor: FC = ({ 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) { @@ -915,7 +917,7 @@ const SqlEditor: FC = ({ )} {isActive && (