From c124e095f8cb1505e4f8b4d6787ca4e9973fd649 Mon Sep 17 00:00:00 2001 From: Fabio Ambauen <1833932+open-dynaMIX@users.noreply.github.com> Date: Fri, 5 Jul 2024 13:54:07 +0200 Subject: [PATCH] fix(analytics): handle null values in getXLSXType (#2731) --- packages/analytics/addon/components/ca-report-preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/analytics/addon/components/ca-report-preview.js b/packages/analytics/addon/components/ca-report-preview.js index c126c4e6d..7814c552e 100644 --- a/packages/analytics/addon/components/ca-report-preview.js +++ b/packages/analytics/addon/components/ca-report-preview.js @@ -77,7 +77,7 @@ export default class CaReportPreviewComponent extends Component { getXLSXType(input) { // Check if it's a number - if (!isNaN(input) && input.trim() !== "") { + if (input && !isNaN(input) && input.trim() !== "") { return "n"; }