We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1ee01a commit ccb7d19Copy full SHA for ccb7d19
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
0 commit comments