From 6a8c9a2bfe5baadbf170a9c4cf88f5915f4600b2 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Mon, 18 Jul 2016 14:02:05 -0400 Subject: [PATCH] Removed the track by $index default from our lists. This will fall back to track by $id(item) and re-render dom elements in ng-repeat. --- .../client/src/shared/list-generator/list-generator.factory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/shared/list-generator/list-generator.factory.js b/awx/ui/client/src/shared/list-generator/list-generator.factory.js index 9fc63e0969..dd7a6beb41 100644 --- a/awx/ui/client/src/shared/list-generator/list-generator.factory.js +++ b/awx/ui/client/src/shared/list-generator/list-generator.factory.js @@ -466,7 +466,7 @@ export default ['$location', '$compile', '$rootScope', 'SearchWidget', 'Paginate innerTable += "ng-class-odd=\"'List-tableRow--oddRow'\" "; innerTable += "ng-class-even=\"'List-tableRow--evenRow'\" "; innerTable += "ng-repeat=\"" + list.iterator + " in " + list.name; - innerTable += (list.trackBy) ? " track by " + list.trackBy : " track by $index"; + innerTable += (list.trackBy) ? " track by " + list.trackBy : ""; innerTable += (list.orderBy) ? " | orderBy:'" + list.orderBy + "'" : ""; innerTable += (list.filterBy) ? " | filter: " + list.filterBy : ""; innerTable += "\">\n";