fix: Convert Date to string for all remaining date fields in stock pages
This commit is contained in:
@@ -792,11 +792,11 @@ const SortiesPage = () => {
|
||||
|
||||
<div className="field col-12 md:col-4">
|
||||
<label htmlFor="dateSortie">Date de sortie</label>
|
||||
<Calendar
|
||||
id="dateSortie"
|
||||
value={exit.dateSortie}
|
||||
onChange={(e) => setExit({...exit, dateSortie: e.value || new Date()})}
|
||||
showIcon
|
||||
<Calendar
|
||||
id="dateSortie"
|
||||
value={exit.dateSortie}
|
||||
onChange={(e) => setExit({...exit, dateSortie: e.value?.toISOString() || new Date().toISOString()})}
|
||||
showIcon
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user