Skip to content

Commit

Permalink
fix: createImage fails if options are undefined (OHIF/Viewers#2239) (c…
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesAPetts committed Jan 15, 2021
1 parent 4c0b99b commit c8a9468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dicomImageLoader/src/imageLoader/createImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function setPixelDataType(imageFrame) {
}
}

function createImage(imageId, pixelData, transferSyntax, options) {
function createImage(imageId, pixelData, transferSyntax, options = {}) {
if (!pixelData || !pixelData.length) {
return Promise.reject(new Error('The file does not contain image data.'));
}
Expand Down

0 comments on commit c8a9468

Please sign in to comment.