diff --git a/studio/state/sql-editor.ts b/studio/state/sql-editor.ts index 067d9ab9370..49833b3d8f1 100644 --- a/studio/state/sql-editor.ts +++ b/studio/state/sql-editor.ts @@ -230,6 +230,8 @@ if (typeof window !== 'undefined') { content: { ...snippet.snippet.content, content_id: id }, type: 'sql', id, + name: snippet.snippet.name, + description: snippet.snippet.description, }) sqlEditorState.needsSaving.delete(id)