You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +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:
@ -96,6 +96,10 @@ class InteropServiceHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static async defaultFilename(noteIds, fileExtension) {
|
static async defaultFilename(noteIds, fileExtension) {
|
||||||
|
if (!noteIds) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
const note = await Note.load(noteIds[0]);
|
const note = await Note.load(noteIds[0]);
|
||||||
// In a rare case the passed not will be null, use the id for filename
|
// In a rare case the passed not will be null, use the id for filename
|
||||||
if (note === null) {
|
if (note === null) {
|
||||||
|
Reference in New Issue
Block a user