Fix: Importing without Metadata is broken. #73 (#75)

* fix: manual metadata import

* fix: lint
This commit is contained in:
DecDuck
2025-06-03 10:49:01 +10:00
committed by GitHub
parent 8a354f0674
commit f264fd0971
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -102,7 +102,7 @@ export class MetadataHandler {
{
id: "",
name: libraryPath,
sourceId: "manual",
sourceId: MetadataSource.Manual,
},
libraryId,
libraryPath,