diff --git a/extensions/cornerstone-dicom-seg/src/panels/PanelSegmentation.tsx b/extensions/cornerstone-dicom-seg/src/panels/PanelSegmentation.tsx
index d17c0397b9f..870c1d454c1 100644
--- a/extensions/cornerstone-dicom-seg/src/panels/PanelSegmentation.tsx
+++ b/extensions/cornerstone-dicom-seg/src/panels/PanelSegmentation.tsx
@@ -217,7 +217,7 @@ export default function PanelSegmentation({
return (
<>
-
+
{
document.removeEventListener('mousedown', handleClick);
+ document.removeEventListener('mouseup', handleClick);
};
}, [onOutsideClick]);
diff --git a/platform/ui/src/components/SegmentationGroupTable/SegmentationDropDownRow.tsx b/platform/ui/src/components/SegmentationGroupTable/SegmentationDropDownRow.tsx
index d3fa818c2f9..0095c97670b 100644
--- a/platform/ui/src/components/SegmentationGroupTable/SegmentationDropDownRow.tsx
+++ b/platform/ui/src/components/SegmentationGroupTable/SegmentationDropDownRow.tsx
@@ -75,14 +75,16 @@ function SegmentationDropDownRow({
storeSegmentation(activeSegmentation.id);
},
},
- {
- title: 'Download',
- onClick: () => {
- onSegmentationDownload(activeSegmentation.id);
- },
- },
]
: []),
+ ...[
+ {
+ title: 'Download',
+ onClick: () => {
+ onSegmentationDownload(activeSegmentation.id);
+ },
+ },
+ ],
]}
>
diff --git a/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupTable.tsx b/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupTable.tsx
index fce3fb4ed62..a247326e3ea 100644
--- a/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupTable.tsx
+++ b/platform/ui/src/components/SegmentationGroupTable/SegmentationGroupTable.tsx
@@ -104,20 +104,18 @@ const SegmentationGroupTable = ({
) : (
- {!disableEditing && (
-
- )}
+
{!disableEditing && showAddSegment && (
onSegmentAdd(activeSegmentationId)} />
)}