Skip to content

Commit

Permalink
fix(measurements): referenced viewable bug if imageId does not exist (#…
Browse files Browse the repository at this point in the history
…1172)

* fix: referenced viewable bug if imageid does not exist
  • Loading branch information
sedghi committed Mar 25, 2024
1 parent 2fdc5ae commit 8618747
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/RenderingEngine/StackViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2863,7 +2863,7 @@ class StackViewport extends Viewport implements IStackViewport, IImagesLoader {
const colonIndex = imageId.indexOf(':');
imageURI = imageId.substring(colonIndex + 1);
}
return referencedImageId.endsWith(imageURI);
return referencedImageId?.endsWith(imageURI);
}

/**
Expand Down Expand Up @@ -3047,7 +3047,6 @@ class StackViewport extends Viewport implements IStackViewport, IImagesLoader {
};

triggerEvent(this.element, Events.COLORMAP_MODIFIED, eventDetail);

}

private unsetColormapGPU() {
Expand Down

0 comments on commit 8618747

Please sign in to comment.