We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af581c commit 280f26bCopy full SHA for 280f26b
browser/main/lib/dataApi/attachmentManagement.js
@@ -84,7 +84,7 @@ function createAttachmentDestinationFolder (destinationStoragePath, noteKey) {
84
function migrateAttachments (markdownContent, storagePath, noteKey) {
85
if (noteKey !== undefined && sander.existsSync(path.join(storagePath, 'images'))) {
86
const attachments = getAttachmentsInMarkdownContent(markdownContent) || []
87
- if (attachments !== []) {
+ if (attachments.length) {
88
createAttachmentDestinationFolder(storagePath, noteKey)
89
}
90
for (const attachment of attachments) {
0 commit comments