From 8a69dc6b82975cdfb5f11122ba03e61e2b959f6b Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Fri, 1 Oct 2021 07:45:32 -0600 Subject: [PATCH] fix: axis date type --- src/utils/buildAxis.linear.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/buildAxis.linear.ts b/src/utils/buildAxis.linear.ts index fa33789f..910f17a3 100644 --- a/src/utils/buildAxis.linear.ts +++ b/src/utils/buildAxis.linear.ts @@ -124,12 +124,12 @@ function buildTimeAxis( // see https://stackoverflow.com/a/2831422 if (Object.prototype.toString.call(options.min) === '[object Date]') { - minValue = min([options.min, minValue as Date]) + minValue = min([options.min as Date, minValue as Date]) shouldNice = false } if (Object.prototype.toString.call(options.max) === '[object Date]') { - maxValue = max([options.max, maxValue as Date]) + maxValue = max([options.max as Date, maxValue as Date]) shouldNice = false }