diff --git a/public/app/features/plugins/admin/api.ts b/public/app/features/plugins/admin/api.ts index a6bbf4625ec..20440a5ee05 100644 --- a/public/app/features/plugins/admin/api.ts +++ b/public/app/features/plugins/admin/api.ts @@ -40,6 +40,7 @@ export async function getPluginDetails(id: string): Promise=9.0.0', statusContext: 'stable', }, diff --git a/public/app/features/plugins/admin/components/PluginDetailsPanel.tsx b/public/app/features/plugins/admin/components/PluginDetailsPanel.tsx index c3be98741da..bf30e8e2a5b 100644 --- a/public/app/features/plugins/admin/components/PluginDetailsPanel.tsx +++ b/public/app/features/plugins/admin/components/PluginDetailsPanel.tsx @@ -36,7 +36,7 @@ export function PluginDetailsPanel(props: Props): React.ReactElement | null { const customLinks = plugin.details?.links?.filter((link) => { const customLinksFiltered = ![ - plugin.url, + plugin.details?.repositoryUrl, plugin.details?.licenseUrl, plugin.details?.documentationUrl, plugin.details?.raiseAnIssueUrl, @@ -47,7 +47,7 @@ export function PluginDetailsPanel(props: Props): React.ReactElement | null { return customLinksFiltered; }); const shouldRenderLinks = - plugin.url || + plugin.details?.repositoryUrl || plugin.details?.licenseUrl || plugin.details?.documentationUrl || plugin.details?.raiseAnIssueUrl || @@ -105,9 +105,9 @@ export function PluginDetailsPanel(props: Props): React.ReactElement | null { <> - {plugin.url && ( + {plugin.details?.repositoryUrl && (