We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f589e5 commit 585ef1fCopy full SHA for 585ef1f
1 file changed
src/main/java/org/launchcode/codingevents/controllers/EventController.java
@@ -44,7 +44,7 @@ public String displayDeleteEventForm(Model model) {
44
}
45
46
@PostMapping("/delete")
47
- public String processDeleteEventForm(@RequestParam int[] eventIds) {
+ public String processDeleteEventForm(@RequestParam(required = false) int[] eventIds) {
48
for (int id : eventIds) {
49
EventData.remove(id);
50
0 commit comments