Enabling child tools labeling and removing

This commit is contained in:
Bruno Alves de Faria committed 2017-12-28 08:59:25 -02:00
1 parent 4e31faa294
commit ebcdf80d49
8 files changed
+117 -33

No files matched your search

@@ -274,7 +274,8 @@ const setActiveToolAndSidebar = () => {
// Found a measurement, save tool and stop loop
if (measurement) {
activeTool = cornerstoneToolType;
const isArray = Array.isArray(cornerstoneToolType);
activeTool = isArray ? cornerstoneToolType[0] : cornerstoneToolType;
return false;
}