diff --git a/edit-mode/function/restActivityLink.js b/edit-mode/function/restActivityLink.js index ff5abc3..bf23dc5 100644 --- a/edit-mode/function/restActivityLink.js +++ b/edit-mode/function/restActivityLink.js @@ -176,22 +176,22 @@ var dp = gantt.createDataProcessor(function (entity, action, data, id) { }); } data['geom'] = geom.find(obj => obj.activity_id == id)?.geom; - let existingEntity = localStorage.getItem('batchEntity'); - if (existingEntity) { - existingEntity = JSON.parse(existingEntity); - // Now batchEntity is an object containing your data, and you can access its properties like batchEntity.entity and batchEntity.data - } - let batchEntity = { - entity: entity, - data: data - }; - let toBeSet = [] - if (existingEntity) { - toBeSet = [...existingEntity, batchEntity] - } else { - toBeSet = [batchEntity] - } - localStorage.setItem('batchEntity', JSON.stringify(toBeSet)); + // let existingEntity = localStorage.getItem('batchEntity'); + // if (existingEntity) { + // existingEntity = JSON.parse(existingEntity); + // // Now batchEntity is an object containing your data, and you can access its properties like batchEntity.entity and batchEntity.data + // } + // let batchEntity = { + // entity: entity, + // data: data + // }; + // let toBeSet = [] + // if (existingEntity) { + // toBeSet = [...existingEntity, batchEntity] + // } else { + // toBeSet = [batchEntity] + // } + // localStorage.setItem('batchEntity', JSON.stringify(toBeSet)); $("body").addClass("loading"); return gantt.ajax.put({ headers: {