else if (activeTab?.uid.toLowerCase() === "tabdev") {
if (ExistingSectionData.Data === typeof undefined) {
ExistingSectionData.Data = {};
}
Object.keys(result.data).forEach((x) => {
ExistingSectionData.Data[x] = result.data[x];
});
if (
ExistingSectionData.Id !== null &&
ExistingSectionData.Id !== undefined &&
ExistingSectionData.Id !== ""
) {
var response = await REApiService.savedata(
ExistingSectionData,
isCAFLinkedEntites ? state.LinkedEntityId : id,
ExistingSectionData.Id,
true
);
} else {
var response = await REApiService.savedata(
ExistingSectionData,
isCAFLinkedEntites ? state.LinkedEntityId : id,
"",
false
);
}
if (
response.InnerData === null ||
response.InnerData === typeof undefined
) {
response.InnerData = [];
var innerObj = {};
innerObj.TabName = "Default";
innerObj.Data = [];
response.InnerData.push(innerObj);
}
setExistingSectionData(response);
}
Getting error as below.
Uncaught (in promise) TypeError: Cannot set properties of null (setting 'Summarise') and i am unable to save the data in db. Any sugeestion where is the wrong