Fix duplication on teams folder creation

This commit is contained in:
Andrew Bastin
2021-04-29 23:50:50 -04:00
parent ab0bc3e927
commit 597fd2c6d1

View File

@@ -221,11 +221,17 @@ export default {
return this.collectionsType.selectedTeam == undefined return this.collectionsType.selectedTeam == undefined
}, },
result({ data }) { result({ data }) {
this.teamCollections[this.collectionsType.selectedTeam.id].push({ console.log(data)
id: data.teamCollectionAdded.id,
title: data.teamCollectionAdded.title, if (data.teamCollectionAdded.parent == null) {
__typename: data.teamCollectionAdded.__typename, debugger
})
this.teamCollections[this.collectionsType.selectedTeam.id].push({
id: data.teamCollectionAdded.id,
title: data.teamCollectionAdded.title,
__typename: data.teamCollectionAdded.__typename,
})
}
}, },
}, },
teamsCollectionUpdated: { teamsCollectionUpdated: {