Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Silence text model error in diff editor (#39703)

Joshen Limbe9ba28be058
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx b/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx
index 52f5444c228..58b82051866 100644
--- a/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx
@@ -705,6 +705,11 @@ export const SQLEditor = () => {
padding: { top: 4 },
lineNumbersMinChars: 3,
}}
+ // [Joshen] These ones are meant to solve a UI issue that seems to only be happening locally
+ // Happens when you use the inline assistant in the SQL Editor and accept the suggestion
+ // Error: TextModel got disposed before DiffEditorWidget model got reset
+ keepCurrentModifiedModel={true}
+ keepCurrentOriginalModel={true}
/>
{showWidget && (
<ResizableAIWidget