add config expertise enabler

This commit is contained in:
mario
2025-03-10 08:01:01 +07:00
parent 4282e9b69f
commit 62668122bd
2 changed files with 8 additions and 1 deletions

View File

@@ -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;