before POST or PUT we used to convert project.fromDate and project.toDate data property into toISOString() so for a while its like reassigning value to itself and for that time period both date fields in generalConfig gets null and we get invalid dateTime in the field.
To avoid this I have assigned projectToSend new object and changed fromDate and toDate to toISOString() and it will not affect project data property directly.
project.fromDate
andproject.toDate
data property into toISOString() so for a while its like reassigning value to itself and for that time period bothdate
fields ingeneralConfig
gets null and we get invalid dateTime in the field.fromDate
andtoDate
to toISOString() and it will not affectproject
data property directly.