We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26b86ed commit 239f67cCopy full SHA for 239f67c
src/components/common/helpers/Helpers.tsx
@@ -785,7 +785,9 @@ export const convertToOptionsList = (
785
}
786
787
export const importComponentFromFELibrary = (componentName: string, defaultComponent?, type?: 'function') => {
788
- if (componentName === 'ExplainWithAIButton') {
+ // Adding this check as we do not want to import the component if flag is off
789
+ // Using this as a hack, to be removed soon
790
+ if (!window._env_.FEATURE_AI_INTEGRATION_ENABLE && componentName === 'ExplainWithAIButton') {
791
return null
792
793
try {
0 commit comments