saving of widget configuration

This commit is contained in:
zadam
2019-08-22 22:14:01 +02:00
parent 8ab2c924c4
commit b84542064c
2 changed files with 32 additions and 12 deletions

View File

@@ -237,7 +237,7 @@ async function importTar(importContext, fileBuffer, importRootNote) {
content = content.toString("UTF-8");
if (noteMeta) {
const internalLinks = (noteMeta.attributes || []).find(attr => attr.type === 'relation' && attr.name === 'internal-link');
const internalLinks = (noteMeta.attributes || []).filter(attr => attr.type === 'relation' && attr.name === 'internal-link');
// this will replace all internal links (<a> and <img>) inside the body
// links pointing outside the export will be broken and changed (ctx.getNewNoteId() will still assign new noteId)