Skip to content

Commit

Permalink
#310. Fix strings truncation for empty value placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
const8ine committed Aug 22, 2024
1 parent 29a7dfb commit 34eda6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/services/csv-export-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class CsvExportService extends AdditionalInterventionResolver {
}

private checkBlankValues(field, prepend = '', append = '', isReplacementValue = true) {
if (field === undefined || field === null || field === '' || field === []) {
if (field === undefined || field === null || field.trim === '' || field === []) {
return isReplacementValue ? this.emptyCellValue : '';
} else {
return `${prepend}${field}${append}`;
Expand Down

0 comments on commit 34eda6d

Please sign in to comment.