Added trck by $index to handle duplicate names in blueprints
(cherry picked from commit d57ebf021c)
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user