the following code worked as expected - before - 2.1.1 release:
const project = new ProjectModel({
transport: {
load: {
requestConfig: {
url: '/api/gantt/load',
headers: {
'Authorization': 'Bearer ***',
'Content-Type': 'application/json; charset=utf-8'
}
}
},
. . .
now I get the following error: Trying to request without url specifying
I did manage to make it working again by adding the property also to the load object:
const project = new ProjectModel({
transport: {
load: {
url: '/api/gantt/load',
requestConfig: {
url: '/api/gantt/load',
headers: {
'Authorization': 'Bearer ***',
'Content-Type': 'application/json; charset=utf-8'
}
}
},
PS: by the way, same thing for the - sync - task
Thank you