Fix crash when opened with no file open
This commit is contained in:
parent
ada99c2e3f
commit
ad192d1bb7
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user