Skip to content

Commit

Permalink
93: Use track by to improve ng-repeat performance. iloire#98
Browse files Browse the repository at this point in the history
  • Loading branch information
glls committed Aug 20, 2021
1 parent 3e60133 commit 7f008f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webserver/views/service-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<tbody>

<tr ng-class={'result-disabled':row.service.enabled===false,'result-success':!row.status.currentOutage,'result-error':row.status.currentOutage}
ng-repeat="row in $data | filter:serviceFilter">
ng-repeat="row in $data | filter:serviceFilter track by row.service.id">

<% if ((user && user.isAdmin) || no_auth) { %>
<td class="admin-operations" data-title="'Admin'">
Expand Down

0 comments on commit 7f008f0

Please sign in to comment.