fix error with getting blenderId from chart id

This commit is contained in:
Ziad-I
2024-06-29 23:09:16 +03:00
parent 33e93fbb68
commit ba4939b969
@@ -246,7 +246,10 @@ function editValue(list, task, event, cell, column) {
console.log("cell:", cell);
console.log("column:", column);
const blenderId = task.getGantt()["vDiv"].id.split("-")[1];
const ganttId = task.getGantt()["vDiv"].id;
const index = ganttId.indexOf("-") + 1;
const blenderId = ganttId.substring(index);
console.log("blenderId:", blenderId);
// update data object reprsenting the task
const dataObj = task.getDataObject();