From 5f3e05f1c584c3d8e366b6f4181877482b05d4c0 Mon Sep 17 00:00:00 2001 From: Dominika Zemanovicova Date: Tue, 19 Nov 2024 09:00:01 +0100 Subject: [PATCH] Fix types Signed-off-by: Dominika Zemanovicova --- .../bulk-import-backend/src/catalog/catalogHttpClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspaces/bulk-import/plugins/bulk-import-backend/src/catalog/catalogHttpClient.ts b/workspaces/bulk-import/plugins/bulk-import-backend/src/catalog/catalogHttpClient.ts index 0daa50b2..cd081cd4 100644 --- a/workspaces/bulk-import/plugins/bulk-import-backend/src/catalog/catalogHttpClient.ts +++ b/workspaces/bulk-import/plugins/bulk-import-backend/src/catalog/catalogHttpClient.ts @@ -144,7 +144,7 @@ export class CatalogHttpClient { method: 'GET', }); const locations = (await response.json()) as { - data: CatalogLocation; + data: { id?: string; target: string; type: string }; }[]; if (!Array.isArray(locations)) { return { locations: [] }; @@ -183,7 +183,7 @@ export class CatalogHttpClient { id: `app-config-location--${target}`, target, source, - }; + } as CatalogLocation; }); const filtered = filterLocations(res, search); return { locations: filtered, totalCount: filtered.length };