When I try to add a new item in your app, it errors on this line because `event` is not defined.