Skip to content
Snippets Groups Projects
Verified Commit cbbcb764 authored by Ruben Backx's avatar Ruben Backx :coffee:
Browse files

Fix empty request table error

parent 73056531
Branches
Tags
2 merge requests!644Deploy request table fix,!643Fix empty request table error
......@@ -347,6 +347,9 @@ public class RequestTableService {
* @return The mapping from assignment ids to edition names.
*/
private Map<Long, String> assignmentsWithCourseCodes(List<AssignmentDetailsDTO> assignments) {
if (assignments.isEmpty())
return Collections.emptyMap();
List<Long> assignmentIds = assignments.stream().map(AssignmentDetailsDTO::getId).toList();
var assignmentModules = Objects
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment