Fix admin library page "to import" logic #70 (#71)

This commit is contained in:
DecDuck
2025-06-02 12:06:57 +10:00
committed by GitHub
parent 3f78b6c94e
commit 8a354f0674

View File

@ -188,7 +188,9 @@ const searchQuery = ref("");
const libraryState = await $dropFetch("/api/v1/admin/library");
const toImport = ref(Object.entries(libraryState.unimportedGames).length > 0);
console.log(Object.values(libraryState.unimportedGames));
const toImport = ref(Object.values(libraryState.unimportedGames).flat().length > 0);
const libraryGames = ref(
libraryState.games.map((e) => {