From c6e0b50ff581bdd9c3f0f3fd175a26543f7cf1d4 Mon Sep 17 00:00:00 2001 From: hiawui Date: Wed, 29 Jun 2022 12:19:45 +0800 Subject: [PATCH] fix: wrong thick stick in view mode 'Month' --- src/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 6d005afa..9cd505f7 100644 --- a/src/index.js +++ b/src/index.js @@ -391,10 +391,7 @@ export default class Gantt { tick_class += ' thick'; } // thick ticks for quarters - if ( - this.view_is(VIEW_MODE.MONTH) && - (date.getMonth() + 1) % 3 === 0 - ) { + if (this.view_is(VIEW_MODE.MONTH) && date.getMonth() % 3 === 0) { tick_class += ' thick'; }