use actual slug

This commit is contained in:
Gamebrary 2021-09-23 19:37:01 -07:00
parent b1d085ff82
commit a86eaeb813

View file

@ -210,6 +210,7 @@ export default {
openGame(gameId, list) {
const gameDetailView = this.settings && this.settings.gameDetailView;
// TODO: rename and make it more generic e.g. active_game_data
this.$store.commit('SET_GAME_MODAL_DATA', { gameId, list });
if (gameDetailView === 'new') {
@ -217,7 +218,7 @@ export default {
name: 'game',
params: {
gameId,
gameSlug: 'molesta-la-bresta',
gameSlug: this.games[gameId].slug,
},
});
} else if (gameDetailView === 'side') {