mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix js linting issues
This commit is contained in:
parent
9e16989c91
commit
b908aa2467
@ -154,19 +154,12 @@ function enableBreadcrumbTree(options) {
|
|||||||
var label = options.label;
|
var label = options.label;
|
||||||
|
|
||||||
if (!label) {
|
if (!label) {
|
||||||
console.log("ERROR: enableBreadcrumbTree called without supplying label");
|
console.log('ERROR: enableBreadcrumbTree called without supplying label');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var filters = options.filters || {};
|
var filters = options.filters || {};
|
||||||
|
|
||||||
function list_to_tree(data) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return roots;
|
|
||||||
}
|
|
||||||
|
|
||||||
inventreeGet(
|
inventreeGet(
|
||||||
options.url,
|
options.url,
|
||||||
filters,
|
filters,
|
||||||
@ -182,8 +175,7 @@ function enableBreadcrumbTree(options) {
|
|||||||
|
|
||||||
for (var i = 0; i < data.length; i++) {
|
for (var i = 0; i < data.length; i++) {
|
||||||
node = data[i];
|
node = data[i];
|
||||||
node.nodes = []; // Initialize with empty node set
|
node.nodes = [];
|
||||||
|
|
||||||
nodes[node.pk] = node;
|
nodes[node.pk] = node;
|
||||||
node.selectable = false;
|
node.selectable = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user