Skip to content

Commit

Permalink
Make edit page, now lists paginated results
Browse files Browse the repository at this point in the history
  • Loading branch information
surajcm committed May 11, 2024
1 parent 282e391 commit bfe5184
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ List<MakeVO> updateMake(@ModelAttribute("id") final Long id,
sanitizedId, sanitizedMakeName, sanitizedDescription);
var make = populateMakeForUpdate(id, makeName, description);
makeService.updateMake(make);
return convertMakeToMakeVO(makeService.fetchAllMakes());
var makes = makeService.listAll(1);
return convertMakeToMakeVO(makes.stream().toList());
}

private Make populateMakeForUpdate(final Long id, final String makeName, final String makeDesc) {
Expand Down

0 comments on commit bfe5184

Please sign in to comment.