mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
change to egw.json to egw.request to fix sporadic error if other data is send back too
This commit is contained in:
parent
e8da7caa64
commit
71ceb25157
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user