global link map WIP

This commit is contained in:
zadam
2021-09-18 14:29:41 +02:00
parent a0caa21458
commit dd37f09309
6 changed files with 88 additions and 32 deletions

View File

@@ -328,9 +328,10 @@ class ConsistencyChecks {
({noteId, type, mime}) => {
if (this.autoFix) {
const note = becca.getNote(noteId);
note.setContent(getBlankContent(false, type, mime));
const blankContent = getBlankContent(false, type, mime);
note.setContent(blankContent);
logFix(`Note ${noteId} content was set to empty string since it was null even though it is not deleted`);
logFix(`Note ${noteId} content was set to "${blankContent}" since it was null even though it is not deleted`);
} else {
logError(`Note ${noteId} content is null even though it is not deleted`);
}