From bfe51848f5e25d362821d8a569e17e0b6fb58eb4 Mon Sep 17 00:00:00 2001 From: Suraj Muraleedharan Date: Sat, 11 May 2024 20:19:19 +0530 Subject: [PATCH] Make edit page, now lists paginated results --- .../java/com/poseidon/make/web/controller/MakeController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/poseidon/make/web/controller/MakeController.java b/src/main/java/com/poseidon/make/web/controller/MakeController.java index a9ee5fc6..cafc2d17 100644 --- a/src/main/java/com/poseidon/make/web/controller/MakeController.java +++ b/src/main/java/com/poseidon/make/web/controller/MakeController.java @@ -201,7 +201,8 @@ List 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) {