We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3060b92 commit 709c3c6Copy full SHA for 709c3c6
pkg/dashboard/static/actions.js
@@ -170,14 +170,13 @@ $('#upgradeModal select').change(function () {
170
const self = $(this)
171
const ver = self.find("option:selected").data("ver");
172
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];
+ 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];
+ }
181
}
182
183
$('#upgradeModal').data("chart", chart)
0 commit comments