Skip to content

Commit

Permalink
Fix inability to reconfigure charts without corresponding repository
Browse files Browse the repository at this point in the history
  • Loading branch information
undera committed Feb 16, 2023
1 parent 3060b92 commit 709c3c6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions pkg/dashboard/static/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,13 @@ $('#upgradeModal select').change(function () {
const self = $(this)
const ver = self.find("option:selected").data("ver");

let chart = ver.repository + "/" + ver.name;
if (!ver.name) {
chart = ""
}

// local chart case
if (ver.urls && ver.urls.length && ver.urls[0].startsWith("file://")) {
chart = ver.urls[0];
let chart = ""
if (ver) {
chart = ver.repository + "/" + ver.name;
// local chart case
if (ver.urls && ver.urls.length && ver.urls[0].startsWith("file://")) {
chart = ver.urls[0];
}
}

$('#upgradeModal').data("chart", chart)
Expand Down

0 comments on commit 709c3c6

Please sign in to comment.