Преглед изворни кода

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

Brice Maron пре 7 година
родитељ
комит
01f80950de
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      public/app/features/annotations/partials/editor.html

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

@@ -21,7 +21,7 @@
 				</tr>
 			</thead>
 			<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)">
 						<i class="fa fa-comment" style="color:{{annotation.iconColor}}"></i> &nbsp;
 						{{annotation.name}}