Fix angry TS

This commit is contained in:
Zagrios
2025-01-29 22:40:59 +01:00
parent 21f4eacefb
commit 4ef821adc9
@@ -67,7 +67,7 @@ export class BeatModsApiService {
return this.requestService.getJSON<{ modVersions: BbmModVersion[] }>(`${this.MODS_REPO_API_URL}/hashlookup?hash=${hash}`).then(({ data }) => {
this.updateModsHashCache(data?.modVersions ?? []);
return data?.modVersions?.at(0);
}).catch(() => {
}).catch((): undefined => {
log.error(`Failed to get mod by hash: ${hash}`);
return undefined;
});