Skip to content

Commit

Permalink
fix for DB not supporting ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
amazy committed Dec 18, 2024
1 parent 5f45dcc commit ea6921e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WebApplication/src/store/modules/studies.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ async function get_studies_shared(context, append) {
orderBy.push({'Type': 'Metadata', 'Key': 'LastUpdate', 'Direction': 'DESC'})
}
let since = (append ? state.studiesIds.length : null);

if (!store.state.configuration.hasExtendedFind) {
orderBy = null;
}
studies = (await api.findStudies(getters.filterQuery, state.labelFilters, "All", orderBy, since));
} else if (state.sourceType == SourceType.REMOTE_DICOM || state.sourceType == SourceType.REMOTE_DICOM_WEB) {
// make sure to fill all columns of the StudyList
Expand Down

0 comments on commit ea6921e

Please sign in to comment.