This commit is contained in:
gamebrary 2024-09-05 16:07:58 -07:00
parent 8a8ae57b6f
commit 990ef7e436
3 changed files with 1 additions and 6 deletions

View file

@ -1,6 +1,5 @@
<template>
<div>
<pre>{{ currentGameId || 'not game page' }}</pre>
<div
class="d-flex mx-2"
v-for="tier in board.lists"

View file

@ -85,8 +85,6 @@ export default {
data: `${IGDB_QUERIES.COMPANY} where id = ${this.$route.params.id};`,
});
// TODO: only load games that aren't cached
const allGames = [
...this.company?.published || [],
...this.company?.developed || [],

View file

@ -118,9 +118,7 @@ export default {
const cachedGames = Object.keys(this.cachedGames);
const gamesNotCached = allGames?.filter((game) => !cachedGames.includes(String(game)))?.toString();
if (gamesNotCached) {
await this.$store.dispatch('LOAD_IGDB_GAMES', gamesNotCached);
}
if (gamesNotCached) await this.$store.dispatch('LOAD_IGDB_GAMES', gamesNotCached);
} catch (e) {
//
}