diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx b/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx index 178c02b1dac..8e3fe722cd2 100644 --- a/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx +++ b/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx @@ -414,7 +414,15 @@ const SQLEditor = () => { ) } } - }, [debugSql, entityDefinitions, id, snap.results, snap.snippets]) + }, [ + debugSql, + entityDefinitions, + id, + snap.results, + snap.snippets, + snapV2.results, + snapV2.snippets, + ]) const acceptAiHandler = useCallback(async () => { try {