Skip to content

Build your personal knowledge base with Trilium Notes

fix(server): crash in prod due to RTL

Elian Doranc4358d52d572
diff --git a/apps/server/src/routes/index.ts b/apps/server/src/routes/index.ts
index 2f579edaf4..bd753d3aff 100644
--- a/apps/server/src/routes/index.ts
+++ b/apps/server/src/routes/index.ts
@@ -59,7 +59,7 @@ function index(req: Request, res: Response) {
triliumVersion: packageJson.version,
assetPath: assetPath,
appPath: appPath,
- isRtl: LOCALES.find(l => l.id === options.locale)?.rtl
+ isRtl: !!LOCALES.find(l => l.id === options.locale)?.rtl
});
}