diff --git a/components/collections/index.vue b/components/collections/index.vue index 96e2036db..ec3e62a2f 100644 --- a/components/collections/index.vue +++ b/components/collections/index.vue @@ -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: {