diff --git a/frontend/src/services/api.js b/frontend/src/services/api.js index d0ee72b5f..143f27035 100644 --- a/frontend/src/services/api.js +++ b/frontend/src/services/api.js @@ -21,6 +21,7 @@ export async function fetchRomApi(platform, rom) { } export async function downloadRomApi(rom, files) { + if(files != undefined && files.length==0){files=undefined}; // Force to download all multirom-parts when no part is selected in the selector const downloadStore = useDownloadStore(); downloadStore.add(rom.file_name); diff --git a/frontend/src/views/Details.vue b/frontend/src/views/Details.vue index 70daa3327..74cc9abf4 100644 --- a/frontend/src/views/Details.vue +++ b/frontend/src/views/Details.vue @@ -25,7 +25,7 @@ const dialogSearchRom = ref(false) const dialogEditRom = ref(false) const dialogDeleteRom = ref(false) const deleteFromFs = ref(false) -const filesToDownload = ref([]) +const filesToDownload = ref(undefined) const tab = ref('details') const downloadUrl = ref(undefined) const { xs, mdAndDown, lgAndUp } = useDisplay()