fix: pass empty string fallback when parsing fields for export (#1616)

This commit is contained in:
Shobhit Nagpal
2025-05-25 23:28:41 +05:30
committed by GitHub
parent 696c016c90
commit 0dcea4f2d7
2 changed files with 2 additions and 2 deletions
@@ -100,7 +100,7 @@ describe('makeTable()', () => {
[
"00:00:00",
"00:00:00",
"...",
"",
"",
"",
"",
@@ -20,7 +20,7 @@ type CsvHeaderKey = OntimeEntryCommonKeys | keyof CustomFields;
export const parseField = (field: CsvHeaderKey, data: unknown): string => {
if (field === 'timeStart' || field === 'timeEnd' || field === 'duration') {
return millisToString(data as MaybeNumber);
return millisToString(data as MaybeNumber, { fallback: '' });
}
if (field === 'isPublic' || field === 'skip') {