We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 043637e commit 2aeb8c9Copy full SHA for 2aeb8c9
2 files changed
2025/src/components/Sessions/index.ts
@@ -13,8 +13,9 @@ export async function getSessionImageUrl(sessionId: string): Promise<string> {
13
const suffix = customExtensions[sessionId] ?? "png";
14
15
const imagePath = `/src/assets/sessions/${sessionId}.${suffix}`;
16
- if (images[imagePath]) {
17
- const imageModule = await images[imagePath]();
+ const imageModuleFunction = images[imagePath];
+ if (imageModuleFunction != null) {
18
+ const imageModule = await imageModuleFunction();
19
return imageModule.default.src;
20
}
21
2025/src/components/Sponsors/Individual.astro
@@ -15,7 +15,7 @@ try {
`../../assets/individual-sponsors/${src && src !== "" ? src : "no-icon"}.png?url`
);
iconUrl = module.default;
-} catch (e) {
+} catch {
console.error(`Icon not found: ${src}`);
---
0 commit comments