Leftover cleanup from 3.1 back to devel

This commit is contained in:
Michael Abashian
2017-02-28 12:03:33 -05:00
parent 1fefa4cfdd
commit bfcbd8a823
3 changed files with 5 additions and 11 deletions

View File

@@ -52,12 +52,10 @@ export default ['$scope', '$rootScope', '$location', '$log',
// Set the item type label
if (list.fields.kind && $scope.options &&
$scope.options.hasOwnProperty('kind')) {
$scope.options.kind.choices.every(function(choice) {
$scope.options.kind.choices.forEach(function(choice) {
if (choice[0] === item.kind) {
itm.kind_label = choice[1];
return false;
}
return true;
});
}
});