Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.tsindex 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];