[ANGULAR] Error when apply Duplicate Event
Hi Bryntum team,
I download the filtering demo with latest version (4.1.5) and try to apply Duplicate Event in example called "Customized context menus"
features : {
eventEdit : {
items : {
location : {
type : 'text',
name : 'location',
label : 'Location',
dataset : { eventType : 'Meeting' }
}
}
},
eventMenu: {
items: {
duplicateEvent: {
text : `<div style="margin-top: 5px">
Duplicate Event
</div>`,
icon: 'b-fa b-fa-clone',
weight: 100,
onItem : 'up.duplicateEvent'
}
}
}
},
duplicateEvent({ eventRecord }) {
const dupe = eventRecord.copy();
// In case it was a recurring event, the dupe will be a one-off.
dupe.recurrence = null;
this.eventStore.add(dupe);
But when I click "Duplicate Event" in Event Menu,
There was an error described in the attached file