Skip to content

Commit

Permalink
fix(StackViewport): check if imagePlaneModule exists before destructu…
Browse files Browse the repository at this point in the history
…ring (#1291)

Co-authored-by: Casey Flynn <[email protected]>
  • Loading branch information
heyflynn and Casey Flynn authored Jun 5, 2024
1 parent 584c4c7 commit a4c86ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/RenderingEngine/StackViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,9 @@ class StackViewport extends Viewport implements IStackViewport, IImagesLoader {
return;
}
const imagePlaneModule = metaData.get(MetadataModules.IMAGE_PLANE, imageId);
if (!imagePlaneModule) {
return;
}
const { imagePositionPatient, frameOfReferenceUID: FrameOfReferenceUID } =
imagePlaneModule;
let { rowCosines, columnCosines } = imagePlaneModule;
Expand Down

0 comments on commit a4c86ff

Please sign in to comment.