Toolbar improvements
This commit is contained in:
@ -36,9 +36,9 @@ const tileImageUrl = computed(() => `${config.server_endpoint}/assets/tiles/${se
|
||||
|
||||
watch(selectedTile, fetchTileTags)
|
||||
|
||||
function fetchTileTags(tile: string) {
|
||||
if (config.development) console.log('P241 selectedTile', tile)
|
||||
socket.connection.emit('gm:tile:tags', { tile }, (response: string[]) => {
|
||||
function fetchTileTags() {
|
||||
if (!selectedTile.value) return
|
||||
socket.connection.emit('gm:tile:tags', { selectedTile }, (response: string[]) => {
|
||||
tags.value = response
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user