fix(studyBrowserCustomization): fix thumbnail menu item actions in study browser (#5283)

This commit is contained in:
ZZzzaaKK authored and GitHub committed 2025-10-02 17:05:45 -04:00
1 parent e04310a02d
commit 2f28a0deab
2 files changed
+7 -20

No files matched your search

+5
View File
@@ -65,6 +65,11 @@ const commandsModule = ({
* @param options.removeFirst - Optional flag to remove the display set first if it's already added
*/
addDisplaySetAsLayer: ({ viewportId, displaySetInstanceUID, removeFirst = false }) => {
if (!viewportId) {
const { activeViewportId } = servicesManager.services.viewportGridService.getState();
viewportId = activeViewportId;
}
if (!viewportId || !displaySetInstanceUID) {
console.warn('Missing required parameters for addDisplaySetAsLayer command');
return;