Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
Signed-off-by: Dominika Zemanovicova <[email protected]>
  • Loading branch information
dzemanov committed Nov 19, 2024
1 parent be29a84 commit 5f3e05f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] };
Expand Down Expand Up @@ -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 };
Expand Down

0 comments on commit 5f3e05f

Please sign in to comment.