Skip to content

Build your personal knowledge base with Trilium Notes

chore(core): fix one more type error

Elian Dorane1079f954e43
diff --git a/packages/trilium-core/src/services/bootstrap_utils.ts b/packages/trilium-core/src/services/bootstrap_utils.ts
index 5970226ab9..10ecb93417 100644
--- a/packages/trilium-core/src/services/bootstrap_utils.ts
+++ b/packages/trilium-core/src/services/bootstrap_utils.ts
@@ -44,7 +44,7 @@ export default function getSharedBootstrapItems(assetPath: string, dbInitialized
maxEntityChangeIdAtLoad: sql.getValue<number>("SELECT COALESCE(MAX(id), 0) FROM entity_changes"),
maxEntityChangeSyncIdAtLoad: sql.getValue<number>("SELECT COALESCE(MAX(id), 0) FROM entity_changes WHERE isSynced = 1"),
isProtectedSessionAvailable: protected_session.isProtectedSessionAvailable(),
- themeCssUrl: getThemeCssUrl(theme, commonItems.assetPath, themeNote),
+ themeCssUrl: getThemeCssUrl(theme, commonItems.assetPath, themeNote) as string | false,
themeUseNextAsBase: themeNote?.getAttributeValue("label", "appThemeBase") as "next" | "next-light" | "next-dark",
}
}