diff --git a/packages/hoppscotch-common/src/services/team-collection.service.ts b/packages/hoppscotch-common/src/services/team-collection.service.ts index 9daad0bb..1e1daaa0 100644 --- a/packages/hoppscotch-common/src/services/team-collection.service.ts +++ b/packages/hoppscotch-common/src/services/team-collection.service.ts @@ -294,7 +294,7 @@ export class TeamCollectionsService extends Service { // Add to entity ids set this.entityIDs.add(`collection-${collection.id}`) - this.collections.value = tree + this.collections.value = [...tree] } /** @@ -386,7 +386,7 @@ export class TeamCollectionsService extends Service { updateCollInTree(tree, collectionUpdate) - this.collections.value = tree + this.collections.value = [...tree] } /** @@ -401,7 +401,7 @@ export class TeamCollectionsService extends Service { this.entityIDs.delete(`collection-${collectionID}`) - this.collections.value = tree + this.collections.value = [...tree] } /** @@ -428,7 +428,7 @@ export class TeamCollectionsService extends Service { // Update the Entity IDs list this.entityIDs.add(`request-${request.id}`) - this.collections.value = tree + this.collections.value = [...tree] } /** @@ -447,7 +447,7 @@ export class TeamCollectionsService extends Service { Object.assign(req, requestUpdate) - this.collections.value = tree + this.collections.value = [...tree] } /** @@ -469,7 +469,7 @@ export class TeamCollectionsService extends Service { this.entityIDs.delete(`request-${requestID}`) // Publish new tree - this.collections.value = tree + this.collections.value = [...tree] } /** @@ -588,7 +588,7 @@ export class TeamCollectionsService extends Service { this.reorderItems(collection.requests, requestIndex, destinationIndex) } - this.collections.value = tree + this.collections.value = [...tree] } public updateCollectionOrder = ( @@ -653,7 +653,7 @@ export class TeamCollectionsService extends Service { } } - this.collections.value = tree + this.collections.value = [...tree] } private registerSubscriptions() {