return description from the search

This commit is contained in:
2021-09-12 22:31:06 +03:00
parent 168b2f6880
commit 41c8f4c35f
3 changed files with 13 additions and 5 deletions

View File

@ -34,7 +34,7 @@
success: function (resp) {
const $options = resp.map(function (pkg) {
const $option = document.createElement("option");
$option.value = pkg;
$option.value = `${pkg.package} (${pkg.description})`;
return $option;
});
$knownPackages.empty().append($options);