fix: SeriesTime and SeriesDate are only set for the first series and undefined for the remaining ones (#2476)
* set SeriesDate and SeriesTime for all series, instead of only for the first series * set SeriesDate and SeriesTime only when they are undefined * fix: equality operator Co-authored-by: Christian El Salloum <christian.elsalloum@emtensor.com> Co-authored-by: Alireza <ar.sedghi@gmail.com>
This commit is contained in:
parent
23376d279d
commit
6a401c9e52
@ -116,6 +116,11 @@ async function makeSOPInstance(server, study, instance) {
|
||||
};
|
||||
study.seriesMap[SeriesInstanceUID] = series;
|
||||
study.series.push(series);
|
||||
} else {
|
||||
if (series.SeriesDate === undefined)
|
||||
series.SeriesDate = naturalizedInstance.SeriesDate;
|
||||
if (series.SeriesTime === undefined)
|
||||
series.SeriesTime = naturalizedInstance.SeriesTime;
|
||||
}
|
||||
|
||||
const wadouri = buildInstanceWadoUrl(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user