Index: Tools/GardeningServer/model/ct-failure-group.html |
diff --git a/Tools/GardeningServer/model/ct-failure-group.html b/Tools/GardeningServer/model/ct-failure-group.html |
index 723165866db724a63d327452e9e43c0a487f2dce..84d01dc9177f9b3b34157482aece5da39e030ff7 100644 |
--- a/Tools/GardeningServer/model/ct-failure-group.html |
+++ b/Tools/GardeningServer/model/ct-failure-group.html |
@@ -42,9 +42,9 @@ CTFailureGroup.prototype._annotate = function(newAnnotation) { |
}); |
if (Object.size(annotation) == 0) { |
- annotations[this.key] = annotation; |
- } else { |
delete annotations[this.key]; |
+ } else { |
+ annotations[this.key] = annotation; |
} |
localStorage.CTFailureGroupAnnotations = JSON.stringify(annotations); |