fix(DicomJSONDataSource): Fix series filtering (#4092)

This commit is contained in:
Igor Octaviano authored and GitHub committed 2024-05-09 16:10:56 -04:00
1 parent e341ebe9d6
commit 2de102c73c
2 files changed
+21 -12

No files matched your search

+8 -11
View File
@@ -239,18 +239,15 @@ export default function ModeRoute({
const filters =
Array.from(query.keys()).reduce((acc: Record<string, string>, val: string) => {
const lowerVal = val.toLowerCase();
if (lowerVal !== 'studyinstanceuids') {
// Not sure why the case matters here - it doesn't in the URL
if (lowerVal === 'seriesinstanceuids') {
const seriesUIDs = getSplitParam(lowerVal, query);
return {
...acc,
seriesInstanceUID: seriesUIDs,
};
}
return { ...acc, [val]: getSplitParam(lowerVal, query) };
// Not sure why the case matters here - it doesn't in the URL
if (lowerVal === 'seriesinstanceuids') {
const seriesUIDs = getSplitParam(lowerVal, query);
return {
...acc,
seriesInstanceUID: seriesUIDs,
};
}
return { ...acc, [val]: getSplitParam(lowerVal, query) };
}, {}) ?? {};
let unsubs;