File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/tools/src/tools/segmentation/strategies Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default {
9
9
10
10
let referencedImageIds ;
11
11
if ( viewport ) {
12
- const referencedImageIds = viewport . getImageIds ( ) ;
12
+ referencedImageIds = viewport . getImageIds ( ) ;
13
13
const isValidVolumeForSphere = csUtils . isValidVolume ( referencedImageIds ) ;
14
14
if ( ! isValidVolumeForSphere ) {
15
15
throw new Error (
Original file line number Diff line number Diff line change @@ -172,9 +172,9 @@ function getStrategyData({
172
172
strategy : unknown ;
173
173
} ) {
174
174
if (
175
- ( 'volumeId' in operationData && operationData . volumeId !== undefined ) ||
175
+ ( 'volumeId' in operationData && operationData . volumeId != null ) ||
176
176
( 'referencedVolumeId' in operationData &&
177
- operationData . referencedVolumeId !== undefined )
177
+ operationData . referencedVolumeId != null )
178
178
) {
179
179
return getStrategyDataForVolumeViewport ( { operationData } ) ;
180
180
}
You can’t perform that action at this time.
0 commit comments