Fix duplication on teams folder creation
This commit is contained in:
parent
ab0bc3e927
commit
597fd2c6d1
1 changed files with 11 additions and 5 deletions
|
|
@ -221,11 +221,17 @@ export default {
|
|||
return this.collectionsType.selectedTeam == undefined
|
||||
},
|
||||
result({ data }) {
|
||||
this.teamCollections[this.collectionsType.selectedTeam.id].push({
|
||||
id: data.teamCollectionAdded.id,
|
||||
title: data.teamCollectionAdded.title,
|
||||
__typename: data.teamCollectionAdded.__typename,
|
||||
})
|
||||
console.log(data)
|
||||
|
||||
if (data.teamCollectionAdded.parent == null) {
|
||||
debugger
|
||||
|
||||
this.teamCollections[this.collectionsType.selectedTeam.id].push({
|
||||
id: data.teamCollectionAdded.id,
|
||||
title: data.teamCollectionAdded.title,
|
||||
__typename: data.teamCollectionAdded.__typename,
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
teamsCollectionUpdated: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue