Remove unnecessary model attribute

This commit is contained in:
Dave Syer 2023-02-21 11:46:22 +00:00
parent ca055dbbe1
commit b298af380d

View file

@ -80,8 +80,7 @@ class OwnerController {
} }
@GetMapping("/owners/find") @GetMapping("/owners/find")
public String initFindForm(Map<String, Object> model) { public String initFindForm() {
model.put("owner", new Owner());
return "owners/findOwners"; return "owners/findOwners";
} }