Skip to content

Commit cab7c30

Browse files
committed
fix: null values
1 parent b550530 commit cab7c30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/DeliveryLead/DeliveryLeadSubmission.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs
337337
<Label>Commentary</Label>
338338
<input
339339
className="w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500"
340-
value={m.commentary}
340+
value={m.commentary ?? ''}
341341
onChange={(e) => handleMilestoneChange(idx, 'commentary', e.target.value)}
342342
placeholder="Commentary"
343343
/>
@@ -347,7 +347,7 @@ export function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs
347347
<input
348348
type="date"
349349
className="w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none"
350-
value={m.dueDate}
350+
value={m.dueDate ?? ''}
351351
onChange={(e) => handleMilestoneChange(idx, 'dueDate', e.target.value)}
352352
placeholder="Due date"
353353
/>

0 commit comments

Comments
 (0)