From b5bf945a1deae41a92c391d0be6d451a83424634 Mon Sep 17 00:00:00 2001 From: Richard Sustek Date: Tue, 21 Nov 2023 09:59:43 +0100 Subject: [PATCH] Fixes array push with spread operator --- ts/share-project-content/sharing_project_content_get_items.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/share-project-content/sharing_project_content_get_items.ts b/ts/share-project-content/sharing_project_content_get_items.ts index facfc3f7..f0d1db69 100644 --- a/ts/share-project-content/sharing_project_content_get_items.ts +++ b/ts/share-project-content/sharing_project_content_get_items.ts @@ -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);