remove graph

This commit is contained in:
miloschwartz
2026-04-21 15:02:56 -07:00
parent 6969671fc4
commit 177ce20dda
7 changed files with 253 additions and 655 deletions

View File

@@ -317,14 +317,7 @@ export function defaultFormValues(): AlertRuleFormValues {
allResources: true,
resourceIds: [],
trigger: "site_toggle",
actions: [
{
type: "notify",
userTags: [],
roleTags: [],
emailTags: []
}
]
actions: []
};
}
@@ -379,16 +372,6 @@ export function apiResponseToFormValues(
});
}
// Always ensure at least one action so the form is valid
if (actions.length === 0) {
actions.push({
type: "notify",
userTags: [],
roleTags: [],
emailTags: []
});
}
const allSites = sourceType === "site" && rule.siteIds.length === 0;
const allHealthChecks =
sourceType === "health_check" && rule.healthCheckIds.length === 0;