Improve asset loading
This commit is contained in:
parent
9eb1543a7a
commit
18371b39fd
@ -19,7 +19,7 @@ async function addHttpRoutes(app: Application) {
|
||||
const tiles = await tileRepository.getAll();
|
||||
tiles.forEach(tile => {
|
||||
assets.push({
|
||||
key: tile.name,
|
||||
key: tile.id,
|
||||
value: '/assets/tiles/' + tile.id + '.png',
|
||||
group: 'tiles',
|
||||
type: 'link'
|
||||
@ -29,7 +29,7 @@ async function addHttpRoutes(app: Application) {
|
||||
const objects = await objectRepository.getAll();
|
||||
objects.forEach(object => {
|
||||
assets.push({
|
||||
key: object.name,
|
||||
key: object.id,
|
||||
value: '/assets/objects/' + object.id + '.png',
|
||||
group: 'objects',
|
||||
type: 'link'
|
||||
|
Loading…
x
Reference in New Issue
Block a user