Deal with data if it came back with something else

This commit is contained in:
nathangray 2020-07-14 14:13:05 -06:00
parent dc6a8e0977
commit 5a72efe7f7
2 changed files with 4 additions and 0 deletions

View File

@ -580,6 +580,8 @@ var CalendarApp = /** @class */ (function (_super) {
} }
// Ask for the real data // Ask for the real data
egw.json("calendar.calendar_ui.ajax_get", [[pushData.id]], function (data) { egw.json("calendar.calendar_ui.ajax_get", [[pushData.id]], function (data) {
if (data && data.data && data.data.data)
return;
var unknown = (typeof egw.dataGetUIDdata(data.uid) === "undefined"); var unknown = (typeof egw.dataGetUIDdata(data.uid) === "undefined");
// Store it, which will call all registered listeners // Store it, which will call all registered listeners
egw.dataStoreUID(data.uid, data.data); egw.dataStoreUID(data.uid, data.data);

View File

@ -522,6 +522,8 @@ class CalendarApp extends EgwApp
// Ask for the real data // Ask for the real data
egw.json("calendar.calendar_ui.ajax_get", [[pushData.id]], function(data) { egw.json("calendar.calendar_ui.ajax_get", [[pushData.id]], function(data) {
if(data && data.data && data.data.data) return;
let unknown = (typeof egw.dataGetUIDdata(data.uid) === "undefined"); let unknown = (typeof egw.dataGetUIDdata(data.uid) === "undefined");
// Store it, which will call all registered listeners // Store it, which will call all registered listeners
egw.dataStoreUID(data.uid, data.data); egw.dataStoreUID(data.uid, data.data);