fix(studyBrowserCustomization): fix thumbnail menu item actions in study browser (#5283)
This commit is contained in:
1 parent
e04310a02d
commit
2f28a0deab
2 files changed
+7
-20
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user