Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -1676,6 +1676,7 @@
|
||||
caseId: stack.caseId || caseId,
|
||||
studyId: stack.studyId || studyId,
|
||||
seriesId: stack.seriesId || null,
|
||||
series: Array.isArray(stack.series) ? stack.series : null,
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -1686,6 +1687,7 @@
|
||||
caseId: item.caseId || null,
|
||||
studyId: item.studyId || null,
|
||||
seriesId: item.seriesId || null,
|
||||
series: Array.isArray(item.series) ? item.series : null,
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -1756,7 +1758,7 @@
|
||||
// Fallback: at least add stack to viewer list and auto-fill an empty viewport if available.
|
||||
const loadAdditionalStackFn = getViewerApi('loadAdditionalStack');
|
||||
if (loadAdditionalStackFn) {
|
||||
await loadAdditionalStackFn(target.imageIds, target.studyId);
|
||||
await loadAdditionalStackFn(target.imageIds, target.studyId, target.series || undefined);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user