Default showPopError to false when there are no initial PoP dates
This commit is contained in:
parent
e1fbac5a52
commit
5a664c5a83
@ -44,6 +44,7 @@ export default {
|
|||||||
const start = new Date(this.initialStartDate)
|
const start = new Date(this.initialStartDate)
|
||||||
const end = new Date(this.initialEndDate)
|
const end = new Date(this.initialEndDate)
|
||||||
const popValidation = !this.initialStartDate ? false : start < end
|
const popValidation = !this.initialStartDate ? false : start < end
|
||||||
|
const showPopValidation = !this.initialStartDate ? false : !popValidation
|
||||||
|
|
||||||
return {
|
return {
|
||||||
clinIndex: this.initialClinIndex,
|
clinIndex: this.initialClinIndex,
|
||||||
@ -54,7 +55,7 @@ export default {
|
|||||||
startDate: start,
|
startDate: start,
|
||||||
endDate: end,
|
endDate: end,
|
||||||
popValid: popValidation,
|
popValid: popValidation,
|
||||||
showPopError: !popValidation,
|
showPopError: showPopValidation,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user