balancerTags with a default empty entry

This commit is contained in:
MHSanaei
2026-04-21 17:24:42 +02:00
parent faec3ca038
commit 733f44ef0f
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -938,6 +938,15 @@
if (newTemplateSettings.routing.balancers.length === 0) {
delete newTemplateSettings.routing.balancers;
}
// Remove orphaned balancer references from routing rules
if (newTemplateSettings.routing.rules) {
newTemplateSettings.routing.rules.forEach((rule) => {
if (rule.balancerTag && rule.balancerTag === removedBalancer.tag) {
delete rule.balancerTag;
}
});
}
this.templateSettings = newTemplateSettings;
this.updateObservatorySelectors();
this.obsSettings = '';