From 71ceb251579e6302523e24442e4dcd9a4e4d15c8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 7 Jul 2021 10:33:12 +0200 Subject: [PATCH] change to egw.json to egw.request to fix sporadic error if other data is send back too --- calendar/js/app.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/calendar/js/app.ts b/calendar/js/app.ts index b44b83ae1c..4a6f3eb77d 100644 --- a/calendar/js/app.ts +++ b/calendar/js/app.ts @@ -661,15 +661,14 @@ export class CalendarApp extends EgwApp }; // Ask for the real data, we don't have it - egw.json("calendar.calendar_ui.ajax_get", [[pushData.id]], function(data) { - if(data && data.data && data.data.data) return; - + egw.request("calendar.calendar_ui.ajax_get", [[pushData.id]]).then((data) => + { // Store it, which will call all registered listeners egw.dataStoreUID(data.uid, data.data); // Any existing events were updated. Run this to catch new events or events moved into view this._update_events(this.state, [data.uid]); - }.bind(this)).sendRequest(true); + }); } /**