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