Skip to content

Commit c7e2321

Browse files
committed
build: resolve build error
1 parent d7827e1 commit c7e2321

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/react/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ export default function ReactView() {
151151
//Tags can be an array or just a string
152152
//This seems like a bug in Obsidian
153153
if (typeof frontmatter?.tags === "string") {
154-
tags = [frontmatter?.tags];
154+
tags = [frontmatter?.tags as string];
155155
} else if (Array.isArray(frontmatter?.tags)) {
156-
tags = frontmatter?.tags;
156+
tags = frontmatter?.tags as string[];
157157
}
158158

159159
const url: string | null = frontmatter?.[urlPropertyName] ?? null;

0 commit comments

Comments
 (0)