diff --git a/CommonUI/src/Components/GanttChart/Bar/Index.tsx b/CommonUI/src/Components/GanttChart/Bar/Index.tsx index 3065d55946..f2f433356f 100644 --- a/CommonUI/src/Components/GanttChart/Bar/Index.tsx +++ b/CommonUI/src/Components/GanttChart/Bar/Index.tsx @@ -88,7 +88,6 @@ const Bar: FunctionComponent = (
= ( setEachIntervalWidth(chartWidth / numberOfInterval); } - setTimelineWidth(chartWidth * 0.75); // 75 % of chart width, 25% for category spacer + + const timelineWidth: number = chartWidth * 0.75; // 75 % of chart width, 25% for category spacer + + setTimelineWidth(timelineWidth); // 75 % of chart width, 25% for category spacer }, [chartWidth]); return (