change to egw.json to egw.request to fix sporadic error if other data is send back too

This commit is contained in:
Ralf Becker 2021-07-07 10:33:12 +02:00
parent e8da7caa64
commit 71ceb25157

View File

@ -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);
});
}
/**