Explorar o código

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

Brice Maron %!s(int64=7) %!d(string=hai) anos
pai
achega
01f80950de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}}