diff --git a/frontend/src/views/Gallery.vue b/frontend/src/views/Gallery.vue
index 0d5838a56..65f259c99 100644
--- a/frontend/src/views/Gallery.vue
+++ b/frontend/src/views/Gallery.vue
@@ -193,6 +193,7 @@ function resetGallery() {
romsStore.reset();
galleryFilterStore.reset();
scrolledToTop.value = true;
+ noPlatformError.value = false;
itemsShown.value = itemsPerBatch.value;
}
@@ -217,7 +218,7 @@ onMounted(async () => {
}
// If platform is different, reset store and fetch roms
- if (storedPlatformId != routePlatformId) {
+ if (storedPlatformId != routePlatformId && !noPlatformError.value) {
resetGallery();
await fetchRoms();
}
@@ -266,61 +267,60 @@ watch(currentView, (newView) => {
-
-
-
-
-
-
-
+
+
+
-
+
+
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
diff --git a/frontend/src/views/GameDetails.vue b/frontend/src/views/GameDetails.vue
index 5f46090d9..ddf220b0e 100644
--- a/frontend/src/views/GameDetails.vue
+++ b/frontend/src/views/GameDetails.vue
@@ -49,33 +49,25 @@ async function fetchDetails() {
})
.catch((error) => {
console.log(error);
- emitter?.emit("snackbarShow", {
- msg: error.response.data.detail,
- icon: "mdi-close-circle",
- color: "red",
- });
+ noRomError.value = true;
})
.finally(() => {
emitter?.emit("showLoadingDialog", { loading: false, scrim: false });
});
- await platformApi
- .getPlatform(rom.value?.platform_id)
- .then((response) => {
- platform.value = response.data;
- })
- .catch((error) => {
- noRomError.value = true;
- console.log(error);
- emitter?.emit("snackbarShow", {
- msg: error.response.data.detail,
- icon: "mdi-close-circle",
- color: "red",
+ if (!noRomError.value) {
+ await platformApi
+ .getPlatform(rom.value?.platform_id)
+ .then((response) => {
+ platform.value = response.data;
+ })
+ .catch((error) => {
+ console.log(error);
+ })
+ .finally(() => {
+ emitter?.emit("showLoadingDialog", { loading: false, scrim: false });
});
- })
- .finally(() => {
- emitter?.emit("showLoadingDialog", { loading: false, scrim: false });
- });
+ }
}
onBeforeMount(async () => {