From 2a927a482b24ac204132e8093343e22323e760db Mon Sep 17 00:00:00 2001 From: chenluli Date: Wed, 21 Feb 2024 11:39:52 +0800 Subject: [PATCH] fix(ava/advisor): fix return type of advicesForChart --- packages/ava/src/advisor/advise-pipeline/advicesForChart.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ava/src/advisor/advise-pipeline/advicesForChart.ts b/packages/ava/src/advisor/advise-pipeline/advicesForChart.ts index b7547ba7..6007151e 100644 --- a/packages/ava/src/advisor/advise-pipeline/advicesForChart.ts +++ b/packages/ava/src/advisor/advise-pipeline/advicesForChart.ts @@ -92,6 +92,6 @@ export function advicesForChart( // if the input data cannot be transformed into DataFrame // eslint-disable-next-line no-console console.error('error: ', error); - return null; + return { advices: [], log: [] }; } }