Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions static/app/views/alerts/issueRuleEditor/ruleNodeList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ class RuleNodeList extends React.Component<Props> {
},
};

// item.comparison type isn't backfilled and is missing for old alert rules
// this is a problem when an old alert is being edited, need to initialize it
if (!item.comparisonType && item.value && item.name) {
item.comparisonType = item.comparisonInterval === undefined ? 'count' : 'percent';
}

if (item.comparisonType) {
changeAlertNode = {
...changeAlertNode,
Expand Down