mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-08 14:29:42 +00:00
remove success toast for parcours startdate + take empty string values into account for action dates
This commit is contained in:
@@ -69,13 +69,14 @@ const store = createStore({
|
||||
return [];
|
||||
},
|
||||
buildPayload(state) {
|
||||
console.log('end date', state.endDate);
|
||||
return {
|
||||
type: 'accompanying_period_work',
|
||||
id: state.work.id,
|
||||
startDate: state.startDate === null ? null : {
|
||||
startDate: state.startDate === null || state.startDate === '' ? null : {
|
||||
datetime: datetimeToISO(ISOToDate(state.startDate))
|
||||
},
|
||||
endDate: state.endDate === null ? null : {
|
||||
endDate: state.endDate === null || state.endDate === '' ? null : {
|
||||
datetime: datetimeToISO(ISOToDate(state.endDate))
|
||||
},
|
||||
note: state.note,
|
||||
|
Reference in New Issue
Block a user