From 4ea8c94586f8a9411e05c29df4fb5a4762b1f8a9 Mon Sep 17 00:00:00 2001 From: Igor Octaviano Date: Fri, 29 May 2026 14:44:28 -0300 Subject: [PATCH] fix(segmentation): apply modeConfiguration overrides The segmentation mode's modeFactory accepted a modeConfiguration argument but never applied it to the returned mode instance, so modesConfiguration overrides from the app config (e.g. hide, displayName) were silently ignored for this mode. Spread modeConfiguration into the returned object to match the other modes. Co-authored-by: Cursor --- modes/segmentation/src/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/modes/segmentation/src/index.tsx b/modes/segmentation/src/index.tsx index 51f08e2d767..0910ed638dd 100644 --- a/modes/segmentation/src/index.tsx +++ b/modes/segmentation/src/index.tsx @@ -237,6 +237,7 @@ function modeFactory({ modeConfiguration }) { hangingProtocol: ['@ohif/mnGrid'], /** SopClassHandlers used by the mode */ sopClassHandlers: [ohif.sopClassHandler, segmentation.sopClassHandler, dicomRT.sopClassHandler], + ...modeConfiguration, }; }