take empty date strings into account

This commit is contained in:
2022-04-20 14:09:28 +02:00
parent ad1e7b576c
commit be77c3729b
3 changed files with 6 additions and 5 deletions

View File

@@ -278,7 +278,7 @@ const store = createStore({
type: conc.person.type
},
start_date: {
datetime: datetimeToISO(ISOToDate(state.startDate))
datetime: state.startDate === null || state.startDate === '' ? null : datetimeToISO(ISOToDate(state.startDate))
}
};