From 1d04c7e1fe722f9c979c8028123c74d56999808a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Poffo?= Date: Wed, 6 Feb 2019 17:25:39 -0200 Subject: [PATCH] Standard JS --- src/diagrams/gantt/ganttDb.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/diagrams/gantt/ganttDb.js b/src/diagrams/gantt/ganttDb.js index e8b812859..ed4364c4c 100644 --- a/src/diagrams/gantt/ganttDb.js +++ b/src/diagrams/gantt/ganttDb.js @@ -64,9 +64,10 @@ export const getTasks = function () { } const isInvalidDate = function (date, dateFormat, excludes) { - if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) - return true; - return excludes.indexOf(date.format(dateFormat.trim())) >= 0; + if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) { + return true + } + return excludes.indexOf(date.format(dateFormat.trim())) >= 0 } const getNextValidDate = function (date, dateFormat, excludes) {