Error trying showing appointment editor in Firefox

Hi.

When I try to edit an apoinment, modal does not show and console shows this error in Mozilla Firefox 61.0.2 (64-bit) Windows 10:

ERROR TypeError: "eventObj[this.fields.id] is undefined"
onEventDetailsUpdatehttp://localhost:50940/agenda.module.17.chunk.js:9935:9
openEditorhttp://localhost:50940/agenda.module.17.chunk.js:9262:17
editClickhttp://localhost:50940/agenda.module.17.chunk.js:11242:13
invokeTaskhttp://localhost:50940/polyfills.bundle.js:13350:17
onInvokeTaskhttp://localhost:50940/vendor.bundle.js:256219:24
invokeTaskhttp://localhost:50940/polyfills.bundle.js:13349:17
runTaskhttp://localhost:50940/polyfills.bundle.js:13117:28i
nvokeTaskhttp://localhost:50940/polyfills.bundle.js:13425:24
invokeTaskhttp://localhost:50940/polyfills.bundle.js:14469:9
globalZoneAware
Callbackhttp://localhost:50940/polyfills.bundle.js:14495:17

Reading doc for handling additional fields:

https://ej2.syncfusion.com/angular/documentation/schedule/appointments.html#handling-additional-fields

This is my apointment model:


public citas: Object[] = [
{
id:     1,
subject: "Test",
startTime: new Date(2018, 7, 30, 9, 30),
endTime: new Date(2018, 7, 30, 11, 30),
description: "Description test",
isAllDay: false,
animalId: 4,
clienteId: 3406,
veterinarioId: 1,
telefono: "666555444",
atendido: false,
horaAtendido: "0001-01-01T00:00:00",
horaLLegada: "0001-01-01T00:00:00",
}
]

And this is my eventSettingsModel


this.eventSettings = {
dataSource: this.citas,
fields: {
id: 'id',
subject: { name: 'subject' },
isAllDay: { name: 'isAllDay' },
startTime: { name: 'startTime' },
endTime: { name: 'endTime' },
description: { name: 'description' },
}
};

Thank you!

2 Replies

AA Arulraj A Syncfusion Team August 31, 2018 03:46 PM UTC

Hi Luis 
 
Thanks for contacting Syncfusion support  
 
We tried to reproduce your reported scenario at our end, but the appointment editing is works fine at our end. Since we couldn’t reproduce it at our end, could you please share us with more details like your complete schedule rendering code.     
 
Kindly let us know, if you need any further assistance on this. 
 
Arulraj A 



LL Luis Lora September 2, 2018 04:39 PM UTC

Hi.

I created a new empty project to upload here because mine is very large, but this new empty project works fine. I will search what component breaks the schedule and I will let you know.

Thank you!

Cheers,

Luis

Loader.
Up arrow icon