fix: Segmentation stats customization module (#5324)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user