Skip to content

Commit 585ef1f

Browse files
committed
Added Deletion ability
1 parent 4f589e5 commit 585ef1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/launchcode/codingevents/controllers/EventController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public String displayDeleteEventForm(Model model) {
4444
}
4545

4646
@PostMapping("/delete")
47-
public String processDeleteEventForm(@RequestParam int[] eventIds) {
47+
public String processDeleteEventForm(@RequestParam(required = false) int[] eventIds) {
4848
for (int id : eventIds) {
4949
EventData.remove(id);
5050
}

0 commit comments

Comments
 (0)