Co-authored-by: Harshit Mehta <harshitm@nvidia.com>
This commit is contained in:
Harshit Mehta
2022-11-11 14:13:55 +05:30
committed by GitHub
parent 3f00e8ef6d
commit cf407c63a2

View File

@@ -29,7 +29,8 @@ function buildChartCard(elm) {
<div class="col-1 rel-date text-nowrap"><span>today</span><div>Updated</div></div> <div class="col-1 rel-date text-nowrap"><span>today</span><div>Updated</div></div>
</div>`) </div>`)
$.getJSON("/api/helm/repo/search?name=" + elm.name).fail(function (xhr) { const chartName = elm.chart.substr(0, elm.chart.lastIndexOf("-"))
$.getJSON("/api/helm/repo/search?name=" + chartName).fail(function (xhr) {
reportError("Failed to get repo name for charts", xhr) reportError("Failed to get repo name for charts", xhr)
}).done(function (data) { }).done(function (data) {
if(data.length > 0) { if(data.length > 0) {