mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 15:17:09 +00:00
Merge branch 'master' of https://github.com/misode/loot-table into dev/help-tooltips
This commit is contained in:
2
view.js
2
view.js
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user