add config expertise enabler
This commit is contained in:
@@ -553,7 +553,13 @@ function ExpertiseOverlayItem({ displaySetProps, customization }: OverlayItemPro
|
||||
}
|
||||
};
|
||||
|
||||
fetchExpertise();
|
||||
// Get the expertise config value
|
||||
const config = window.config || {};
|
||||
|
||||
// Only fetch expertise if the config value is true
|
||||
if (config.expertise === true) {
|
||||
fetchExpertise();
|
||||
}
|
||||
}, [referenceInstance]);
|
||||
|
||||
if (!expertise) return null;
|
||||
|
||||
Reference in New Issue
Block a user