[v-autocomplete] Fix for special characters

This commit is contained in:
Matej Glasnák committed 2023-06-09 14:42:35 +02:00
1 parent 2d7f29e9f4
commit 994356628d
10 files changed
+147 -83

No files matched your search

@@ -53,6 +53,24 @@ export default {
return employee
})
if (!this.mastertask.team)
return this.mastertask.duration = totalDuration
this.mastertask.team.employees = this.mastertask.team.employees.map(employee => {
if (isNaN(employee.duration) || isNaN(parseFloat(employee.duration)))
return employee
if (typeof employee.duration == 'string') {
totalDuration += parseFloat(employee.duration)
employee.duration = parseFloat(employee.duration)
}
else if (typeof employee.duration == 'number') {
totalDuration += employee.duration
}
return employee
})
this.mastertask.duration = totalDuration
}
},
@@ -62,7 +80,7 @@ export default {
if (!value) return
this.mastertask.team = this.teams.find(team => team.id == value)
this.mastertask.employees = this.mastertask.team.employees
// this.mastertask.employees = this.mastertask.team.employees
},
}
}