This commit is contained in:
Haris Rozajac
2026-01-14 16:06:13 -07:00
parent 5edf84d334
commit 6ab2806f21
@@ -61,8 +61,7 @@ class ImportDashboardOverviewUnConnected extends PureComponent<Props, State> {
// when kubernetesDashboard are enabled, we bypass api/dashboard/import
// and hit the k8s dashboard API directly
if (config.featureToggles.kubernetesDashboards) {
// 1. process datasources so the template placeholder is replaced with the actual value user selected
// process datasources so the template placeholder is replaced with the actual value user selected
const annotations = dashboard.annotations.list.map((annotation: AnnotationQuery) => {
return processAnnotation(annotation, inputs, form);
});
@@ -116,7 +115,6 @@ class ImportDashboardOverviewUnConnected extends PureComponent<Props, State> {
},
};
// hit v1 API directly
const result = await getDashboardAPI('v1').saveDashboard(dashboardK8SPayload);
if (result.url) {