Skip to content

Commit

Permalink
fix: Handle absence of deleted tickets in mixin (#4714)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamareebjamal authored Aug 5, 2020
1 parent 683ef31 commit 5415285
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/mixins/event-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ export default Mixin.create(MutableArray, CustomFormMixin, {
});

function destroyDeletedTickets(deletedTickets) {
if (!deletedTickets) {return} // This mixin may be used in other steps not containing tickets
deletedTickets.forEach(ticket => {
ticket.destroyRecord();
});
Expand Down

1 comment on commit 5415285

@vercel
Copy link

@vercel vercel bot commented on 5415285 Aug 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.