Alerting: Fix exporting new rule with a new group (#101404)

Fix exporting new rule with a new group
This commit is contained in:
Sonia Aguilar
2025-02-27 15:20:07 +01:00
committed by GitHub
parent f8b63c364b
commit 980332ae75
@@ -168,7 +168,7 @@ export const getPayloadToExport = (
} else {
// we have to create a new group with the updated rule
return {
name: existingGroup?.name ?? '',
name: existingGroup?.name ?? formValues.group,
rules: [updatedRule],
};
}