fix: for initialImageIndex mismatch issue for loading SR after disabling prompts (#4732)

Co-authored-by: ashikcn <ashik@L1140.trenser.com>
This commit is contained in:
ashik-trenserandashikcn authored and GitHub committed 2025-01-28 08:53:42 -05:00
1 parent 078a72996f
commit 8e3e2085d4
3 files changed
+19 -6

No files matched your search

@@ -51,7 +51,7 @@ export function WindowLevelActionMenu({
const { colorbarService, cornerstoneViewportService } = servicesManager.services;
const viewportInfo = cornerstoneViewportService.getViewportInfo(viewportId);
const viewport = cornerstoneViewportService.getCornerstoneViewport(viewportId);
const backgroundColor = viewportInfo.getViewportOptions().background;
const backgroundColor = viewportInfo?.getViewportOptions().background;
const isLight = backgroundColor ? utilities.isEqual(backgroundColor, [1, 1, 1]) : false;
const { t } = useTranslation('WindowLevelActionMenu');