fix TypeError undeleting an event in non-list-view eg. dayview

This commit is contained in:
Ralf Becker 2020-07-16 15:05:45 +02:00
parent b41d35a0ef
commit cc7d1fbe58
2 changed files with 5 additions and 4 deletions

View File

@ -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);

View File

@ -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);