mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
.
This commit is contained in:
1 parent
88792943e6
commit
04d91c93ff
1 file changed
+5
-5
@@ -220,12 +220,12 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
removeEmployee({ id }) {
|
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) {
|
// if (isEmployeeInTeam) {
|
||||||
this.mastertask.team_id = null
|
// this.mastertask.team_id = null
|
||||||
this.mastertask.team = null
|
// this.mastertask.team = null
|
||||||
}
|
// }
|
||||||
|
|
||||||
this.mastertask.employees = this.mastertask.employees.filter(employee => employee.id != id)
|
this.mastertask.employees = this.mastertask.employees.filter(employee => employee.id != id)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user