Hi teams,
I tried to refresh project data when click on button "Refresh" with code
<DemoButton
text={'Refresh'}
onClick={() => {
gantt.project.load();
console.log(gantt.project);
}}
/>
Button I got error as picture in attachment. Please share me the way to fix it.
My config project as
const project = new ProjectModel({
autoLoad: true,
autoSync: true,
transport: {
load: {
url: "https://localhost:3001/test"
},
sync : {
url: "https://localhost:3001/sync"
}
},
validateResponse : true
});
Best regards.