fix(server): crash in prod due to RTL

This commit is contained in:
Elian Doran 2025-10-08 21:28:41 +03:00
parent b8ffb004ce
commit c4358d52d5
No known key found for this signature in database

View File

@ -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
});
}