Revert "fix: Reduce gantt exclude days length"

This reverts commit 2bde5ad667.
This commit is contained in:
Sidharth Vinod
2023-10-06 10:49:09 +05:30
parent 54d7b57f59
commit 157c90eeac

View File

@@ -520,9 +520,9 @@ export const draw = function (text, id, version, diagObj) {
return; return;
} }
if (dayjs(maxTime).diff(dayjs(minTime), 'year') > 1) { if (dayjs(maxTime).diff(dayjs(minTime), 'year') > 5) {
log.warn( log.warn(
'The difference between the min and max time is more than 1 years. This will cause performance issues. Skipping drawing exclude days.' 'The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.'
); );
return; return;
} }