mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 08:12:40 +10:00
fix: re-enable metadata providers
This commit is contained in:
@ -197,13 +197,13 @@ const router = useRouter();
|
||||
const importLoading = ref(false);
|
||||
const importError = ref<string | undefined>();
|
||||
async function importGame(metadata: boolean) {
|
||||
if (!metadataResults.value) return;
|
||||
if (!metadataResults.value && metadata) return;
|
||||
|
||||
const game = await $fetch("/api/v1/admin/import/game", {
|
||||
method: "POST",
|
||||
body: {
|
||||
path: games.unimportedGames[currentlySelectedGame.value],
|
||||
metadata: metadata ? metadataResults.value[currentlySelectedMetadata.value] : undefined,
|
||||
metadata: metadata && metadataResults.value ? metadataResults.value[currentlySelectedMetadata.value] : undefined,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user