From cf407c63a23e25cd15878661c2067458a14979b3 Mon Sep 17 00:00:00 2001 From: Harshit Mehta Date: Fri, 11 Nov 2022 14:13:55 +0530 Subject: [PATCH] Fixes #91 (#93) Co-authored-by: Harshit Mehta --- pkg/dashboard/static/list-view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/dashboard/static/list-view.js b/pkg/dashboard/static/list-view.js index 926418d..72322e5 100644 --- a/pkg/dashboard/static/list-view.js +++ b/pkg/dashboard/static/list-view.js @@ -29,7 +29,8 @@ function buildChartCard(elm) {
today
Updated
`) - $.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) }).done(function (data) { if(data.length > 0) {