Quellcode durchsuchen

fix: add track by name in annotation list to avoid $$hashKey in json

Brice Maron vor 7 Jahren
Ursprung
Commit
01f80950de
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      public/app/features/annotations/partials/editor.html

+ 1 - 1
public/app/features/annotations/partials/editor.html

@@ -21,7 +21,7 @@
 				</tr>
 				</tr>
 			</thead>
 			</thead>
 			<tbody>
 			<tbody>
-				<tr ng-repeat="annotation in ctrl.annotations">
+				<tr ng-repeat="annotation in ctrl.annotations track by annotation.name">
 					<td style="width:90%" ng-hide="annotation.builtIn" class="pointer" ng-click="ctrl.edit(annotation)">
 					<td style="width:90%" ng-hide="annotation.builtIn" class="pointer" ng-click="ctrl.edit(annotation)">
 						<i class="fa fa-comment" style="color:{{annotation.iconColor}}"></i> &nbsp;
 						<i class="fa fa-comment" style="color:{{annotation.iconColor}}"></i> &nbsp;
 						{{annotation.name}}
 						{{annotation.name}}