Skip to content

Commit 3cff8fc

Browse files
authored
Fix with ai on embedded (#313)
1 parent c390032 commit 3cff8fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/src/metabase/appState.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,13 @@ Here's what I need modified:
347347
children: [getBaseStyles() + (enableHighlightHelpers ? getHighlightStyles() : '')]
348348
});
349349
const errorMessageSelector = querySelectorMap['error_message_head']
350+
const isEmbedded = getParsedIframeInfo().isEmbedded as unknown === 'true'
350351
const uniqueID = await RPCs.addNativeElements(errorMessageSelector, {
351352
tag: 'button',
352353
attributes: {
353354
class: 'Button Button--primary minusx_style_error_button',
354355
},
355-
children: ['✨ Fix with MinusX']
356+
children: [(isEmbedded ? '✨ Fix with AI' : '✨ Fix with MinusX')]
356357
})
357358
addNativeEventListener({
358359
type: "CSS",

0 commit comments

Comments
 (0)