fix creation of evaluation in js

This commit is contained in:
Julien Fastré 2022-04-26 14:26:51 +02:00
parent 505384c2a0
commit 5a1ce399f6

View File

@ -69,7 +69,6 @@ const store = createStore({
return [];
},
buildPayload(state) {
console.log('end date', state.endDate);
return {
type: 'accompanying_period_work',
id: state.work.id,
@ -245,7 +244,7 @@ const store = createStore({
type: "accompanying_period_work_evaluation",
key: state.evaluationsPicked.length + 1,
evaluation: evaluation,
startDate: new Date(),
startDate: dateToISO(new Date()),
endDate: null,
maxDate: null,
warningInterval: null,