diff --git a/src/controllers/dashboard/plugins/add/index.js b/src/controllers/dashboard/plugins/add/index.js index 70071e38d1..8bca658a37 100644 --- a/src/controllers/dashboard/plugins/add/index.js +++ b/src/controllers/dashboard/plugins/add/index.js @@ -68,8 +68,10 @@ function renderPackage(pkg, installedPlugins, page) { // This is a hack; the repository name and URL should be part of the global values // for the plugin, not each individual version. So we just use the top (latest) // version to get this information. +if (pkg.versions.length) { $('#repositoryName', page).text(pkg.versions[0].repositoryName); $('#repositoryUrl', page).text(pkg.versions[0].repositoryUrl); + } if (installedPlugin) { const currentVersionText = globalize.translate('MessageYouHaveVersionInstalled', '' + installedPlugin.Version + '');