From 3e8ec8f3d1e119e50c513cb4b9e8f0ad897b20a4 Mon Sep 17 00:00:00 2001 From: kflemin <2205659+kflemin@users.noreply.github.com> Date: Fri, 15 Nov 2024 17:12:00 -0700 Subject: [PATCH] lint --- .../inventory_reports_controller.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/seed/static/seed/js/controllers/inventory_reports_controller.js b/seed/static/seed/js/controllers/inventory_reports_controller.js index 86c1c5d625..18872ea4f1 100644 --- a/seed/static/seed/js/controllers/inventory_reports_controller.js +++ b/seed/static/seed/js/controllers/inventory_reports_controller.js @@ -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));