Skip to content

Commit

Permalink
Fixes array push with spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage authored Nov 21, 2023
1 parent 067597f commit b5bf945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/share-project-content/sharing_project_content_get_items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const allContentItems: IContentItem[] = [];
const response1 = await deliveryClient1.items()
.toPromise();

allContentItems.push(response1.data.items);
allContentItems.push(...response1.data.items);

const response2 = await deliveryClient2.items()
.toPromise();

allContentItems.push(response2.data.items);
allContentItems.push(...response2.data.items);

0 comments on commit b5bf945

Please sign in to comment.