Skip to content

Commit 7faef88

Browse files
committed
make them undefined insted of empty string to make it cleaner in component lib
1 parent fdde234 commit 7faef88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/api/configurations.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ export const configureDocuments = (documents, requestIdentifier) => {
209209
text: document.ship_from?.text,
210210
},
211211
// the following properties only need to exist on POs
212-
turnaroundTime: document.turn_around_time.human || '',
213-
poNumber: document.po_number || '',
214-
relatedSOWIdentifier: document.proposal_ref?.identifier || '',
215-
adPO: document.scientist_identifier || '',
212+
turnaroundTime: document.turn_around_time.human || undefined,
213+
poNumber: document.po_number || undefined,
214+
relatedSOWIdentifier: document.proposal_ref?.identifier || undefined,
215+
adPO: document.scientist_identifier || undefined,
216216
}))
217217
}
218218

0 commit comments

Comments
 (0)