Merge branch 'master' of https://github.com/misode/loot-table into dev/help-tooltips

This commit is contained in:
Misode
2019-12-20 21:45:39 +01:00
5 changed files with 157 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ function changeVersion(version) {
structure = json.root;
} else if (json.roots) {
let id = window.location.pathname.replace(/\/$/, '').replace(/^\//, '');
structure = json.roots.find(e => e.id === id);
structure = json.roots.find(e => e.id === id) || json.roots[0] ;
}
components = json.components;
collections = json.collections;