1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Fixed tests

This commit is contained in:
Laurent Cozic 2023-09-25 16:26:50 +01:00
parent 34c4b832ba
commit d71a404636

View File

@ -201,7 +201,7 @@ async function saveNoteResources(note: ExtractedNote) {
delete (toSave as any).dataFilePath;
delete (toSave as any).dataEncoding;
delete (toSave as any).hasData;
toSave.file_extension = fileExtension(resource.filename);
toSave.file_extension = resource.filename ? fileExtension(resource.filename) : '';
// ENEX resource filenames can contain slashes, which may confuse other
// parts of the app, which expect this `filename` field to be safe.