Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kflemin committed Nov 16, 2024
1 parent c9740f8 commit 3e8ec8f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions seed/static/seed/js/controllers/inventory_reports_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ angular.module('SEED.controller.inventory_reports', []).controller('inventory_re
return children;
};

function path_to_string(path) {
const orderedPath = [];
for (const i in $scope.level_names) {
if (Object.prototype.hasOwnProperty.call(path, $scope.level_names[i])) {
orderedPath.push(path[$scope.level_names[i]]);
}
}
return orderedPath.join(' : ');
}
// function path_to_string(path) {
// const orderedPath = [];
// for (const i in $scope.level_names) {
// if (Object.prototype.hasOwnProperty.call(path, $scope.level_names[i])) {
// orderedPath.push(path[$scope.level_names[i]]);
// }
// }
// return orderedPath.join(' : ');
// }
const access_level_instances_by_depth = ah_service.calculate_access_level_instances_by_depth($scope.access_level_tree);
// cannot select parents alis
const [users_depth] = Object.entries(access_level_instances_by_depth).find(([, x]) => x.length === 1 && x[0].id === parseInt($scope.users_access_level_instance_id, 10));
Expand Down

0 comments on commit 3e8ec8f

Please sign in to comment.