mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
Fix inability to reconfigure charts without corresponding repository
This commit is contained in:
@@ -170,15 +170,14 @@ $('#upgradeModal select').change(function () {
|
|||||||
const self = $(this)
|
const self = $(this)
|
||||||
const ver = self.find("option:selected").data("ver");
|
const ver = self.find("option:selected").data("ver");
|
||||||
|
|
||||||
let chart = ver.repository + "/" + ver.name;
|
let chart = ""
|
||||||
if (!ver.name) {
|
if (ver) {
|
||||||
chart = ""
|
chart = ver.repository + "/" + ver.name;
|
||||||
}
|
|
||||||
|
|
||||||
// local chart case
|
// local chart case
|
||||||
if (ver.urls && ver.urls.length && ver.urls[0].startsWith("file://")) {
|
if (ver.urls && ver.urls.length && ver.urls[0].startsWith("file://")) {
|
||||||
chart = ver.urls[0];
|
chart = ver.urls[0];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$('#upgradeModal').data("chart", chart)
|
$('#upgradeModal').data("chart", chart)
|
||||||
$('#upgradeModal form .chart-name').val(chart)
|
$('#upgradeModal form .chart-name').val(chart)
|
||||||
|
|||||||
Reference in New Issue
Block a user