Skip to content

Commit f02ad93

Browse files
author
Meta Construct
committed
this could fuck up
1 parent d9e65a8 commit f02ad93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/webapp/api/game-server-status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default async (webApp: WebApp): Promise<void> => {
7979
} else {
8080
thumbFilepath = mapThumbnail as string;
8181
}
82-
const mapThumbnail64 = await imageToDataURL(thumbFilepath);
82+
const mapThumbnail64 = thumbFilepath ? await imageToDataURL(thumbFilepath) : "";
8383
// #endregion
8484

8585
const html = pug.renderFile(

0 commit comments

Comments
 (0)