mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 14:29:25 +02:00
fix: Reduce gantt exclude days length
This commit is contained in:
@@ -520,9 +520,9 @@ export const draw = function (text, id, version, diagObj) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (dayjs(maxTime).diff(dayjs(minTime), 'year') > 5) {
|
||||
if (dayjs(maxTime).diff(dayjs(minTime), 'year') > 1) {
|
||||
log.warn(
|
||||
'The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.'
|
||||
'The difference between the min and max time is more than 1 years. This will cause performance issues. Skipping drawing exclude days.'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user