This commit is contained in:
Matej Glasnák committed 2023-08-18 12:16:44 +02:00
1 parent 88792943e6
commit 04d91c93ff
1 file changed
+5 -5
@@ -220,12 +220,12 @@ export default {
methods: {
removeEmployee({ id }) {
const isEmployeeInTeam = this.mastertask.team?.employees.find(employee => employee.id == id)
// const isEmployeeInTeam = this.mastertask.team?.employees.find(employee => employee.id == id)
if (isEmployeeInTeam) {
this.mastertask.team_id = null
this.mastertask.team = null
}
// if (isEmployeeInTeam) {
// this.mastertask.team_id = null
// this.mastertask.team = null
// }
this.mastertask.employees = this.mastertask.employees.filter(employee => employee.id != id)
},