aboutsummaryrefslogtreecommitdiff
path: root/rules_manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'rules_manager.go')
-rw-r--r--rules_manager.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules_manager.go b/rules_manager.go
index 2b721a2..c256354 100644
--- a/rules_manager.go
+++ b/rules_manager.go
@@ -176,8 +176,8 @@ func (rm *rulesManagerImpl) UpdateRule(context context.Context, id RowID, rule R
newRule.Color = rule.Color
delete(rm.rulesByName, newRule.Name)
- rm.rulesByName[rule.Name] = newRule
- rm.rules[rule.ID] = newRule
+ rm.rulesByName[newRule.Name] = newRule
+ rm.rules[id] = newRule
rm.mutex.Unlock()
}