Fix linter/transpiler errors, formatting

This commit is contained in:
2024-10-24 14:32:04 +02:00
parent fc711c2194
commit 0096f3cae3
6 changed files with 30 additions and 20 deletions

View File

@@ -28,7 +28,7 @@ export default class Article {
return tag ? tag[1] : "Untitled";
}
get image(): string {
get image(): string | undefined {
const tag = this.event.tags.find((t) => t[0] === "image");
return tag ? tag[1] : undefined;
}