Skip to content

Commit

Permalink
fix sort column
Browse files Browse the repository at this point in the history
  • Loading branch information
melazaar committed Dec 26, 2024
1 parent 4cff904 commit 9d1b8c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public ResponseEntity<Page<StudyDTO>> searchStudies(

Sort sorting = Sort.by(SORTING_CRITERION);

if (!sortColumn.isEmpty() && !sortDirection.isEmpty()) {
if (sortColumn != null && !sortColumn.isEmpty() && !sortDirection.isEmpty()) {
Sort.Direction direction = Sort.Direction.fromString(sortDirection);
sorting = Sort.by(direction, sortColumn);
}
Expand Down

0 comments on commit 9d1b8c6

Please sign in to comment.