fix: typecheck

This commit is contained in:
zurdi
2025-01-03 03:23:36 +00:00
parent 8ad86f2edd
commit 08de3b3ddf
2 changed files with 2 additions and 3 deletions

View File

@@ -408,8 +408,7 @@ class SSBaseHandler(MetadataHandler):
async def get_matched_roms_by_name(
self, search_term: str, platform_ss_id: int
) -> list[SSGamesRom]:
# TODO: migrate to put all SS platform IDs
platform_ss_id = 9
# TODO: migrate to put all SS platform IDs in the database
if not SS_API_ENABLED:
return []

View File

@@ -47,7 +47,7 @@ const isMobyFiltered = ref(true);
const isSSFiltered = ref(true);
const computedAspectRatio = computed(() => {
const ratio =
platfotmsStore.getAspectRatio(rom.value?.platform_id) ||
platfotmsStore.getAspectRatio(rom.value?.platform_id ?? -1) ||
galleryViewStore.defaultAspectRatioCover;
return parseFloat(ratio.toString());
});