fix: 🐛 SeriesInstanceUID fallback + update retrieve metadata filtered to check for lazy (#4346)
This commit is contained in:
parent
83f3bf4ec1
commit
14498d4e9a
@ -39,16 +39,22 @@ function retrieveMetadataFiltered(
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
Promise.all(promises).then(results => {
|
if (enableStudyLazyLoad === true) {
|
||||||
const aggregatedResult = { preLoadData: [], promises: [] };
|
Promise.all(promises).then(results => {
|
||||||
|
const aggregatedResult = { preLoadData: [], promises: [] };
|
||||||
|
|
||||||
results.forEach(({ preLoadData, promises }) => {
|
results.forEach(({ preLoadData, promises }) => {
|
||||||
aggregatedResult.preLoadData = aggregatedResult.preLoadData.concat(preLoadData);
|
aggregatedResult.preLoadData = aggregatedResult.preLoadData.concat(preLoadData);
|
||||||
aggregatedResult.promises = aggregatedResult.promises.concat(promises);
|
aggregatedResult.promises = aggregatedResult.promises.concat(promises);
|
||||||
});
|
});
|
||||||
|
|
||||||
resolve(aggregatedResult);
|
resolve(aggregatedResult);
|
||||||
}, reject);
|
}, reject);
|
||||||
|
} else {
|
||||||
|
Promise.all(promises).then(results => {
|
||||||
|
resolve(results.flat());
|
||||||
|
}, reject);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -240,7 +240,7 @@ export default function ModeRoute({
|
|||||||
Array.from(query.keys()).reduce((acc: Record<string, string>, val: string) => {
|
Array.from(query.keys()).reduce((acc: Record<string, string>, val: string) => {
|
||||||
const lowerVal = val.toLowerCase();
|
const lowerVal = val.toLowerCase();
|
||||||
// Not sure why the case matters here - it doesn't in the URL
|
// 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);
|
const seriesUIDs = getSplitParam(lowerVal, query);
|
||||||
return {
|
return {
|
||||||
...acc,
|
...acc,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user