From 1a09a38a6e3c1d2da725cd59b95ab6c8e0eb2d93 Mon Sep 17 00:00:00 2001 From: Praveen Date: Tue, 14 Jan 2025 10:48:53 +0530 Subject: [PATCH] fix: on calling update_task, start and end date not being updated --- src/bar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bar.js b/src/bar.js index 490b165..7f68f4a 100644 --- a/src/bar.js +++ b/src/bar.js @@ -51,6 +51,8 @@ export default class Bar { this.invalid = this.task.invalid; this.height = this.gantt.options.bar_height; this.image_size = this.height - 5; + this.task._start = new Date(this.task.start); + this.task._end = new Date(this.task.end); this.compute_x(); this.compute_y(); this.compute_duration();