Skip to content

Commit

Permalink
fix: can not get correct series
Browse files Browse the repository at this point in the history
- The v4 lodash find use the array to find object
> Original is v3 way
  • Loading branch information
Chinlinlee committed Nov 8, 2022
1 parent 559af61 commit 035bb7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/dicom-web/controller/wado-rs-framenumber-rendered.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ module.exports = async function (req , res) {
"series.instance.dicomJson.00280008": 1
});
let dataSeries = dicomJson.series;
let hitSeries = _.find(dataSeries, "uid", req.params.seriesID);
let hitSeries = _.find(dataSeries, ["uid", req.params.seriesID]);
let hitSeriesInstance = hitSeries.instance;
let hitInstance = _.find(hitSeriesInstance, { uid: req.params.instanceID });
let dicomNumberOfFrames = _.get(hitInstance, "00280008.Value.0") || 1;
Expand Down

0 comments on commit 035bb7e

Please sign in to comment.