1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00

Desktop: Fix JEX export (#3026)

* Return empty default for exports with no note ids (jex for example)

* switch to ! syntax instead of == null
This commit is contained in:
Caleb John 2020-04-11 17:14:53 -06:00 committed by GitHub
parent 870a76c570
commit 3aa38d35d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,6 +96,10 @@ class InteropServiceHelper {
}
static async defaultFilename(noteIds, fileExtension) {
if (!noteIds) {
return '';
}
const note = await Note.load(noteIds[0]);
// In a rare case the passed not will be null, use the id for filename
if (note === null) {