diff --git a/app/js/index.js b/app/js/index.js index 93c89c2..3fa20fb 100644 --- a/app/js/index.js +++ b/app/js/index.js @@ -12,7 +12,7 @@ m.request("./data/nodes.json") .map(name => nodes[name]) .forEach(node => list.push(node)); - const rows = list + let rows = list .filter(node => !(node.groups && node.groups.not_in_creative_inventory == 1)) .map(node => { return m("tr", [ @@ -21,6 +21,9 @@ m.request("./data/nodes.json") ]); }); + // Only show the first few items + rows = rows.splice(0, 25); + const table = m("table", [ m("thead", [ m("th", [