Skip to content

Commit

Permalink
Fix logical error
Browse files Browse the repository at this point in the history
If the rule is immutable, they can only edit actions.
  • Loading branch information
rylnd committed Sep 3, 2020
1 parent 526929e commit db36f40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ const EditRulePageComponent: FC = () => {

useEffect(() => {
if (rule?.immutable) {
setActiveStep(RuleStep.scheduleRule);
setActiveStep(RuleStep.ruleActions);
} else {
setActiveStep(RuleStep.defineRule);
}
Expand Down

0 comments on commit db36f40

Please sign in to comment.