Merge pull request #929 from danielyxie/dev

Fix research tree not appearing
This commit is contained in:
hydroflame 2021-05-03 18:25:04 -04:00 committed by GitHub
commit 8006e976a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

File diff suppressed because one or more lines are too long

@ -1365,6 +1365,11 @@ Industry.prototype.createResearchBox = function() {
}, },
} }
// Construct the tree with Treant
// This is required for side effect.
// eslint-disable-next-line no-new
new Treant(markup);
// Add Event Listeners for all Nodes // Add Event Listeners for all Nodes
const allResearch = researchTree.getAllNodes(); const allResearch = researchTree.getAllNodes();
for (let i = 0; i < allResearch.length; ++i) { for (let i = 0; i < allResearch.length; ++i) {