Added trck by $index to handle duplicate names in blueprints

(cherry picked from commit d57ebf021c)
This commit is contained in:
Nik
2019-08-22 09:43:41 +01:00
committed by Sebastiaan Janssen
parent 5b1f2ef95d
commit 55d0ca2557
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@
</ul>
<ul class="umb-actions umb-actions-child" ng-show="selectBlueprint">
<li ng-repeat="(key, value) in docType.blueprints | orderBy:'name':false">
<li ng-repeat="(key, value) in docType.blueprints | orderBy:'name':false track by $index">
<a ng-click="createFromBlueprint(key)">
<i class="large {{docType.icon}}"></i>
<span class="menu-label">

View File

@@ -27,7 +27,7 @@
</a>
<ul class="dropdown-menu">
<li ng-repeat="(key, value) in listViewAllowedTypes[0].blueprints">
<li ng-repeat="(key, value) in listViewAllowedTypes[0].blueprints track by $index">
<a ng-click="createFromBlueprint(entityType, listViewAllowedTypes[0].blueprints.alias, key)">
<i class="{{listViewAllowedTypes[0].icon}}"></i>
{{value}}