From b908aa24672ceffc219456816f408e945909a70c Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 11 Dec 2021 00:33:16 +1100 Subject: [PATCH] fix js linting issues --- InvenTree/templates/js/dynamic/nav.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/InvenTree/templates/js/dynamic/nav.js b/InvenTree/templates/js/dynamic/nav.js index 67194fe76d..28f9a26d8d 100644 --- a/InvenTree/templates/js/dynamic/nav.js +++ b/InvenTree/templates/js/dynamic/nav.js @@ -154,19 +154,12 @@ function enableBreadcrumbTree(options) { var label = options.label; if (!label) { - console.log("ERROR: enableBreadcrumbTree called without supplying label"); + console.log('ERROR: enableBreadcrumbTree called without supplying label'); return; } var filters = options.filters || {}; - function list_to_tree(data) { - - - - return roots; - } - inventreeGet( options.url, filters, @@ -182,8 +175,7 @@ function enableBreadcrumbTree(options) { for (var i = 0; i < data.length; i++) { node = data[i]; - node.nodes = []; // Initialize with empty node set - + node.nodes = []; nodes[node.pk] = node; node.selectable = false;