Skip to content

Commit

Permalink
fix: missing bind for the callLoadImage function (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi authored Jan 20, 2023
1 parent c95ba60 commit fd96060
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ export default class StreamingImageVolume extends ImageVolume {

// Use loadImage because we are skipping the Cornerstone Image cache
// when we load directly into the Volume cache
function callLoadImage(imageId, imageIdIndex, options) {
const callLoadImage = (imageId, imageIdIndex, options) => {
return imageLoader.loadImage(imageId, options).then(
(image) => {
// scalarData is the volume container we are progressively loading into
Expand All @@ -480,7 +480,7 @@ export default class StreamingImageVolume extends ImageVolume {
errorCallback(error, imageIdIndex, imageId);
}
);
}
};

return {
callLoadImage,
Expand Down

0 comments on commit fd96060

Please sign in to comment.