mirror of
https://github.com/rommapp/romm.git
synced 2026-06-30 15:55:54 +00:00
fix: typecheck
This commit is contained in:
@@ -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 []
|
||||
|
||||
|
||||
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user