diff --git a/calendar/js/app.js b/calendar/js/app.js index c66515eb4b..3d28c62d24 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -1891,8 +1891,9 @@ var CalendarApp = /** @class */ (function (_super) { * @param _senders */ CalendarApp.prototype.cal_delete = function (_action, _senders) { - var all = _action.parent.data.nextmatch.getSelection().all; - var no_notifications = _action.parent.getActionById("no_notifications").checked; + var _a, _b; + var all = (_a = _action.parent.data.nextmatch) === null || _a === void 0 ? void 0 : _a.getSelection().all; + var no_notifications = (_b = _action.parent.getActionById("no_notifications")) === null || _b === void 0 ? void 0 : _b.checked; var matches = false; var ids = []; var cal_event = this.egw.dataGetUIDdata(_senders[0].id); diff --git a/calendar/js/app.ts b/calendar/js/app.ts index f1905919c3..45daf00cec 100644 --- a/calendar/js/app.ts +++ b/calendar/js/app.ts @@ -2111,8 +2111,8 @@ class CalendarApp extends EgwApp */ cal_delete(_action, _senders) { - let all = _action.parent.data.nextmatch.getSelection().all; - let no_notifications = _action.parent.getActionById("no_notifications").checked; + let all = _action.parent.data.nextmatch?.getSelection().all; + let no_notifications = _action.parent.getActionById("no_notifications")?.checked; let matches = false; let ids = []; let cal_event = this.egw.dataGetUIDdata(_senders[0].id);