Work_time not working properly ReactJS

Hi, I am trying to set work_time for my gantt chart and the documentation seems pretty straightforward. However, even when I set it to true it still shows the full day (00-23hrs). Here’s my code:
/* globals gantt */
gantt.config.duration_unit = “hour”;
gantt.config.work_time = true;
gantt.config.subscales = [{ unit: “hour”, step: 1, date: “%H” }];

Here’s my gantt:

What am I doing wrong? any help would be greatly appreciated! thanks

If you enable the work_time option, Gantt will ignore non-working time when calculating the duration. But it won’t hide non-working time in the chart. Here is the snippet where Gantt hides non-working time:

If you need something else, please clarify.