From 2ec7bd94b2490e83cd99e1a0f94df9b1b9b43aea Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Tue, 16 Aug 2022 10:29:38 -0300 Subject: [PATCH 1/3] fixing chart :bug: --- src/components/graph/costIndicatorChart/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/graph/costIndicatorChart/index.tsx b/src/components/graph/costIndicatorChart/index.tsx index a1c7ed8..a9820db 100644 --- a/src/components/graph/costIndicatorChart/index.tsx +++ b/src/components/graph/costIndicatorChart/index.tsx @@ -51,7 +51,7 @@ export default function CostIndicatorChart({ title, data1, data2, label, subtitl { label: '2021', data: data1?.map(value => value), - skipNull: data2?.map(value => value)?.includes(null), + // skipNull: data2?.map(value => value)?.includes(null), borderRadius: 8, datalabels: { backgroundColor: 'white', From ba54f8ffd66eb1139190f10b06664ccd77d81c68 Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Tue, 16 Aug 2022 10:30:57 -0300 Subject: [PATCH 2/3] fixing chart :bug: --- src/pages/index.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index f4b9f15..eaf536d 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -168,15 +168,15 @@ export default function Home() { ) } -export const getServerSideProps: GetServerSideProps = async (ctx) => { - const { ['@smartAuth-token']: token } = parseCookies(ctx) +// export const getServerSideProps: GetServerSideProps = async (ctx) => { +// const { ['@smartAuth-token']: token } = parseCookies(ctx) - if (token) { - return { - redirect: { - destination: '/dashboard', - permanent: false - } - } - } -} +// if (token) { +// return { +// redirect: { +// destination: '/dashboard', +// permanent: false +// } +// } +// } +// } From 46b204c2e6fa8a54d3cce32ef55a098ed5fd835a Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Tue, 16 Aug 2022 10:33:19 -0300 Subject: [PATCH 3/3] fixing chart :bug: --- src/components/graph/costIndicatorChart/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/graph/costIndicatorChart/index.tsx b/src/components/graph/costIndicatorChart/index.tsx index a9820db..a1c7ed8 100644 --- a/src/components/graph/costIndicatorChart/index.tsx +++ b/src/components/graph/costIndicatorChart/index.tsx @@ -51,7 +51,7 @@ export default function CostIndicatorChart({ title, data1, data2, label, subtitl { label: '2021', data: data1?.map(value => value), - // skipNull: data2?.map(value => value)?.includes(null), + skipNull: data2?.map(value => value)?.includes(null), borderRadius: 8, datalabels: { backgroundColor: 'white',