mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-05 20:13:58 +00:00
remove graph
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user