Skip to content

Commit 239f67c

Browse files
committed
chore: update check and add comment
1 parent 26b86ed commit 239f67c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/common/helpers/Helpers.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,9 @@ export const convertToOptionsList = (
785785
}
786786

787787
export const importComponentFromFELibrary = (componentName: string, defaultComponent?, type?: 'function') => {
788-
if (componentName === 'ExplainWithAIButton') {
788+
// 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') {
789791
return null
790792
}
791793
try {

0 commit comments

Comments
 (0)