Skip to content

Commit

Permalink
fix(analytics): handle null values in getXLSXType (#2731)
Browse files Browse the repository at this point in the history
  • Loading branch information
open-dynaMIX authored Jul 5, 2024
1 parent 2403c67 commit c124e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/analytics/addon/components/ca-report-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit c124e09

Please sign in to comment.