Skip to content

Build your personal knowledge base with Trilium Notes

chore(collection/presentation): fix typecheck

Elian Dorand27d9bf7dcf9
diff --git a/apps/client/src/widgets/collections/presentation/themes.ts b/apps/client/src/widgets/collections/presentation/themes.ts
index da706a658b..414472d562 100644
--- a/apps/client/src/widgets/collections/presentation/themes.ts
+++ b/apps/client/src/widgets/collections/presentation/themes.ts
@@ -50,7 +50,7 @@ export function getPresentationThemes() {
}));
}
-export async function loadPresentationTheme(name: keyof typeof themes) {
+export async function loadPresentationTheme(name: keyof typeof themes | string) {
let theme = themes[name];
if (!theme) theme = themes[DEFAULT_THEME];