fix: Segmentation stats customization module (#5324)

This commit is contained in:
Salim Kanoun authored and GitHub committed 2025-08-25 09:56:36 -04:00
1 parent e071ed740f
commit b9d6f558cb
2 files changed
+22 -1

No files matched your search

@@ -16,9 +16,12 @@ export function setupSegmentationDataModifiedHandler({
const { unsubscribe: debouncedUnsubscribe } = segmentationService.subscribeDebounced(
segmentationService.EVENTS.SEGMENTATION_DATA_MODIFIED,
async ({ segmentationId }) => {
const disableUpdateSegmentationStats = customizationService.getCustomization('panelSegmentation.disableUpdateSegmentationStats');
const segmentation = segmentationService.getSegmentation(segmentationId);
if (!segmentation) {
if (!segmentation || disableUpdateSegmentationStats) {
return;
}