fix: 🐛 SeriesInstanceUID fallback + update retrieve metadata filtered to check for lazy (#4346)

This commit is contained in:
Igor Octaviano 2024-08-27 08:49:48 -03:00 committed by GitHub
parent 83f3bf4ec1
commit 14498d4e9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 9 deletions

View File

@ -39,6 +39,7 @@ function retrieveMetadataFiltered(
);
});
if (enableStudyLazyLoad === true) {
Promise.all(promises).then(results => {
const aggregatedResult = { preLoadData: [], promises: [] };
@ -49,6 +50,11 @@ function retrieveMetadataFiltered(
resolve(aggregatedResult);
}, reject);
} else {
Promise.all(promises).then(results => {
resolve(results.flat());
}, reject);
}
});
}

View File

@ -240,7 +240,7 @@ export default function ModeRoute({
Array.from(query.keys()).reduce((acc: Record<string, string>, val: string) => {
const lowerVal = val.toLowerCase();
// Not sure why the case matters here - it doesn't in the URL
if (lowerVal === 'seriesinstanceuids') {
if (lowerVal === 'seriesinstanceuids' || lowerVal === 'seriesinstanceuid') {
const seriesUIDs = getSplitParam(lowerVal, query);
return {
...acc,