Skip to content

Commit 709c3c6

Browse files
committed
Fix inability to reconfigure charts without corresponding repository
1 parent 3060b92 commit 709c3c6

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

pkg/dashboard/static/actions.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,13 @@ $('#upgradeModal select').change(function () {
170170
const self = $(this)
171171
const ver = self.find("option:selected").data("ver");
172172

173-
let chart = ver.repository + "/" + ver.name;
174-
if (!ver.name) {
175-
chart = ""
176-
}
177-
178-
// local chart case
179-
if (ver.urls && ver.urls.length && ver.urls[0].startsWith("file://")) {
180-
chart = ver.urls[0];
173+
let chart = ""
174+
if (ver) {
175+
chart = ver.repository + "/" + ver.name;
176+
// local chart case
177+
if (ver.urls && ver.urls.length && ver.urls[0].startsWith("file://")) {
178+
chart = ver.urls[0];
179+
}
181180
}
182181

183182
$('#upgradeModal').data("chart", chart)

0 commit comments

Comments
 (0)