Fix crash when opened with no file open

This commit is contained in:
RunasSudo 2025-06-12 22:18:38 +10:00
parent ada99c2e3f
commit ad192d1bb7
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -59,7 +59,7 @@ async function initApp() {
]; ];
// Init plugin routes // Init plugin routes
if (db.metadata.plugins.indexOf('austax') >= 0) { if (dbFilename !== null && db.metadata.plugins.indexOf('austax') >= 0) {
routes.push(...austax.getRoutes()); routes.push(...austax.getRoutes());
} }