fix: enhance preview accept method (#5199)

This commit is contained in:
rodrigobasilio2022 authored and GitHub committed 2025-07-11 17:15:26 -04:00
1 parent df926e2513
commit 540923ad8b
11 files changed
+125 -122

No files matched your search

+4 -1
View File
@@ -58,7 +58,10 @@ const getLabelmapTools = ({ toolGroupService }) => {
// tools is an object with toolName as the key and tool as the value
Object.keys(tools).forEach(toolName => {
const tool = tools[toolName];
if (tool instanceof cornerstoneTools.LabelmapBaseTool) {
if (
tool instanceof cornerstoneTools.LabelmapBaseTool &&
tool.shouldResolvePreviewRequests()
) {
labelmapTools.push(tool);
}
});