fix: multiple request created on teams (closes #2455)

This commit is contained in:
Andrew Bastin
2022-09-07 00:41:08 +05:30
parent a75e755ebd
commit 77a561b581
3 changed files with 41 additions and 0 deletions

View File

@@ -376,6 +376,9 @@ export default defineComponent({
if (!newValue) this.updateCollectionType("my-collections")
},
},
beforeDestroy() {
this.teamCollectionAdapter.unsubscribeSubscriptions()
},
mounted() {
this.subscribeTo(this.teamCollectionAdapter.collections$, (colls) => {
this.teamCollectionsNew = cloneDeep(colls)