Refactor error view and make loot table default

This commit is contained in:
Misode
2020-06-18 23:01:13 +02:00
parent a5ffc57ca6
commit b9f53b79c9
5 changed files with 24 additions and 27 deletions

View File

@@ -99,6 +99,9 @@ Promise.all([
const treeControlsRedo = document.getElementById('tree-controls-redo')!
let selected = modelFromPath(location.pathname)
if (selected.length === 0) {
selected = 'loot-table'
}
const models: { [key: string]: DataModel } = {
'loot-table': new DataModel(LootTableSchema),