mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix creation of evaluation in js
This commit is contained in:
parent
505384c2a0
commit
5a1ce399f6
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user