fix: use SeriesMetadata method instead of property in findMostRecentStructuredReport (#2038)
fixes #1714 Call getInstanceCount() instead of manually checking length (which does not work) Co-authored-by: Stefan Silviu <silviu.stefan@ab4.systems>
This commit is contained in:
parent
bea31d5fec
commit
91364db882
@ -13,7 +13,7 @@ const findMostRecentStructuredReport = studies => {
|
||||
// Skip series that may not have instances yet
|
||||
// This can happen if we have retrieved just the initial
|
||||
// details about the series via QIDO-RS, but not the full metadata
|
||||
if (!series.instances || !series.instances.length) {
|
||||
if (!series || series.getInstanceCount() === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user