Fix research tree not appearing

This commit is contained in:
Olivier Gagnon 2021-05-03 18:24:22 -04:00
parent c6f0551709
commit 5613d371c9
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) {