Skip to content

Commit

Permalink
fix(ui): Fix Link warnings (#13694) (#13854)
Browse files Browse the repository at this point in the history
Signed-off-by: Geoffrey Muselli <[email protected]>
  • Loading branch information
speedfl authored Jun 2, 2023
1 parent d7cc8da commit f8d0d59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export const ApplicationSummary = (props: ApplicationSummaryProps) => {
{
title: 'LINKS',
view: (
<DataLoader load={() => services.applications.getLinks(app.metadata.name)} input={app} key='appLinks'>
<DataLoader load={() => services.applications.getLinks(app.metadata.name, app.metadata.namespace)} input={app} key='appLinks'>
{(links: models.LinksResponse) => <DeepLinks links={links.items} />}
</DataLoader>
)
Expand Down
3 changes: 2 additions & 1 deletion ui/src/app/shared/services/applications-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,10 @@ export class ApplicationsService {
.then(() => true);
}

public getLinks(applicationName: string): Promise<models.LinksResponse> {
public getLinks(applicationName: string, namespace: string): Promise<models.LinksResponse> {
return requests
.get(`/applications/${applicationName}/links`)
.query({namespace})
.send()
.then(res => res.body as models.LinksResponse);
}
Expand Down

0 comments on commit f8d0d59

Please sign in to comment.