diff --git a/pkg/dashboard/static/scripts.js b/pkg/dashboard/static/scripts.js index 0d55145..987fbf3 100644 --- a/pkg/dashboard/static/scripts.js +++ b/pkg/dashboard/static/scripts.js @@ -60,6 +60,7 @@ function fillClusters(limNS) { if (!limNS) { fillNamespaceList(res.items) } + }).always(function () { initView(); // can only do it after loading cluster and namespace lists }) }) @@ -203,7 +204,6 @@ function fillNamespaceList(data) { const curContextNamespaces = $("body").data("contexts").filter(obj => { return obj.IsCurrent }) - console.log(curContextNamespaces) if (!data || !data.length) { $("#namespace").append("default")