Skip to content

Commit 3f1d4de

Browse files
authored
fix(segmentation): getClosestImageId should proceed to calculate the closest imageId if imageIds is not empty. (#2518)
1 parent 4cd186a commit 3f1d4de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/utilities/getClosestImageId.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function getClosestImageId(
3535
const { direction, spacing, imageIds } = imageVolume;
3636
const { ignoreSpacing = false } = options || {};
3737

38-
if (imageIds?.length) {
38+
if (!imageIds?.length) {
3939
return;
4040
}
4141

0 commit comments

Comments
 (0)