Skip to content

Commit

Permalink
fix: šŸ› SeriesInstanceUID fallback + update retrieve metadata filteredā€¦
Browse files Browse the repository at this point in the history
ā€¦ to check for lazy (#4346)
  • Loading branch information
igoroctaviano authored Aug 27, 2024
1 parent 83f3bf4 commit 14498d4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,22 @@ function retrieveMetadataFiltered(
);
});

Promise.all(promises).then(results => {
const aggregatedResult = { preLoadData: [], promises: [] };
if (enableStudyLazyLoad === true) {
Promise.all(promises).then(results => {
const aggregatedResult = { preLoadData: [], promises: [] };

results.forEach(({ preLoadData, promises }) => {
aggregatedResult.preLoadData = aggregatedResult.preLoadData.concat(preLoadData);
aggregatedResult.promises = aggregatedResult.promises.concat(promises);
});
results.forEach(({ preLoadData, promises }) => {
aggregatedResult.preLoadData = aggregatedResult.preLoadData.concat(preLoadData);
aggregatedResult.promises = aggregatedResult.promises.concat(promises);
});

resolve(aggregatedResult);
}, reject);
resolve(aggregatedResult);
}, reject);
} else {
Promise.all(promises).then(results => {
resolve(results.flat());
}, reject);
}
});
}

Expand Down
2 changes: 1 addition & 1 deletion platform/app/src/routes/Mode/Mode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 14498d4

Please sign in to comment.