mirror of
https://github.com/romancm/gamebrary
synced 2024-11-13 23:17:08 +00:00
Clean up
This commit is contained in:
parent
8a8ae57b6f
commit
990ef7e436
3 changed files with 1 additions and 6 deletions
|
@ -1,6 +1,5 @@
|
|||
<template>
|
||||
<div>
|
||||
<pre>{{ currentGameId || 'not game page' }}</pre>
|
||||
<div
|
||||
class="d-flex mx-2"
|
||||
v-for="tier in board.lists"
|
||||
|
|
|
@ -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 || [],
|
||||
|
|
|
@ -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) {
|
||||
//
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue