Skip to content

Commit

Permalink
Explicit all fields of rule to import
Browse files Browse the repository at this point in the history
  • Loading branch information
c8y3 committed Nov 20, 2024
1 parent d6a0539 commit b2f3209
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/web/wizard/logic/RulesImportExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ function normalizeImportedRule(rule) {
const condition_type = normalizeConditionType(rule);
const priority = normalizePriority(rule);
const description = normalizeDescription(rule.description);
const {severity, ...ruleWithoutSeverity} = rule;
return { ...ruleWithoutSeverity, priority, description, condition_type, condition_parameters, notification_parameters };
return {
priority, description, condition_type, condition_parameters, notification_parameters,
title: rule.title, stream: rule.stream, second_stream: rule.second_stream
};
}

export default {
Expand Down

0 comments on commit b2f3209

Please sign in to comment.