Hi !
I recently upgraded to Scheduler v4.1.0 and I got an new error rising since then when using the GroupFeature.
Here is the error in the console :
The error is thrown when my wrapper updates (using ComponentDidUpdate) and tries to update the scheduler stores with my Redux store data.
Since I don't have any error when I disable the feature, it seems to be a problem with my data structure dans the group feature, maybe during the initial sorting ?
Here is how i set the group feature :
<BryntumScheduler
ref={schedulerRef}
[...]
groupFeature={{
field: 'agency',
}}
/>
Here are my models.
// Resources
resources: {
fields: [
{name: 'id', dataSource: '@id'},
{name: 'firstName', dataSource: 'firstName'},
{name: 'lastName', dataSource: 'lastName'},
{name: 'agency', dataSource: 'productionCenter.name'},
],
}
// Events
fields: [
{name: 'id', dataSource: '@id'},
{name: 'name', dataSource: 'oT.address.label'},
{name: 'startDate', dataSource: 'startDate'},
{name: 'endDate', dataSource: 'endDate'},
{name: 'duration', dataSource: 'estimatedDuration'},
{name: 'eventColor', dataSource: 'interventionProgression.color', defaultValue: '#9e9e9e'},
{name: 'eventStyle', defaultValue: 'plain'},
{name: 'durationUnit', defaultValue: 's'},
],
As you can see I try to group using the agency field which is mapped from a subnested object property of my resources objects. My resource model has a 'productionCenter' field and I want to group them using the name of that productionCenter.
I also attached JSON sample of the data so you can have a look at it if needed.
As i said, this is a new error. The group feature worked well before I updated from v4.1.0-beta-3 to v4.1.0.
Thanks in advance for the help !