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:
parent
870a76c570
commit
3aa38d35d7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user