File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
apps/src/metabase/helpers Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,8 @@ export async function convertDOMtoStateSQLQueryV2() : Promise<MetabaseAppStateSQ
179179 ) ;
180180 const dbId = await getSelectedDbId ( ) ;
181181 const selectedDatabaseInfo = dbId ? await getDatabaseInfo ( dbId ) : undefined ;
182+ const sqlErrorMessage = await getSqlErrorMessage ( ) ;
183+
182184 return {
183185 type : MetabaseAppStateType . SQLEditor ,
184186 version : '2' ,
@@ -189,7 +191,8 @@ export async function convertDOMtoStateSQLQueryV2() : Promise<MetabaseAppStateSQ
189191 currentCard,
190192 outputMarkdown,
191193 parameterValues,
192- selectedDatabaseInfo
194+ selectedDatabaseInfo,
195+ sqlErrorMessage
193196 }
194197}
195198
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export interface MetabaseAppStateSQLEditorV2 extends MetabaseAppStateBase {
2727 currentCard : Card
2828 outputMarkdown : string
2929 parameterValues : ParameterValues
30+ sqlErrorMessage ?: string
3031}
3132
3233export interface MetabaseAppStateDashboardV2 extends MetabaseAppStateBase {
You can’t perform that action at this time.
0 commit comments