From d9c682fd0b26b5181d8700d06d12831f6befce6b Mon Sep 17 00:00:00 2001 From: zurdi zurdo Date: Mon, 27 Mar 2023 01:51:40 +0200 Subject: [PATCH] no results found button disabled --- frontend/src/components/RomDetails.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/RomDetails.vue b/frontend/src/components/RomDetails.vue index 44e64c6f2..ccb9be909 100644 --- a/frontend/src/components/RomDetails.vue +++ b/frontend/src/components/RomDetails.vue @@ -30,11 +30,7 @@ async function searchRomIGDB() { p_igdb_id: rom.value.p_igdb_id }).then((response) => { console.log(response.data.data) - if (response.data.data.length != 0){ - matchedRoms.value = response.data.data - }else{ - matchedRoms.value = [{'name': 'No games found'}] - } + matchedRoms.value = response.data.data }).catch((error) => {console.log(error)}) searching.value = false } @@ -175,6 +171,7 @@ async function deleteRom() { +

No results found