mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix bug when saving non-text notes
This commit is contained in:
parent
50401954d1
commit
585398ad5c
@ -209,6 +209,16 @@ async function runAllChecks() {
|
||||
AND type != 'relation-map'`,
|
||||
"Note has invalid type", errorList);
|
||||
|
||||
await runCheck(`
|
||||
SELECT
|
||||
noteId
|
||||
FROM
|
||||
notes
|
||||
WHERE
|
||||
isDeleted = 0
|
||||
AND content IS NULL`,
|
||||
"Note content is null even though it is not deleted", errorList);
|
||||
|
||||
await runCheck(`
|
||||
SELECT
|
||||
parentNoteId
|
||||
|
@ -219,7 +219,7 @@ function findRelationMapLinks(content, foundLinks) {
|
||||
|
||||
async function saveLinks(note, content) {
|
||||
if (note.type !== 'text' && note.type !== 'relation-map') {
|
||||
return;
|
||||
return content;
|
||||
}
|
||||
|
||||
const foundLinks = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user