mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix a bug where render note content could be set to null during renaming
This commit is contained in:
parent
41d47c5d33
commit
3de124748d
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
echo "Deleting existing builds"
|
echo "Deleting existing builds"
|
||||||
|
|
||||||
rm -r dist/*
|
rm -rf dist/*
|
||||||
|
|
||||||
SRC_DIR=dist/trilium-src
|
SRC_DIR=dist/trilium-src
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -82,8 +82,6 @@ async function handleMessage(event) {
|
|||||||
let syncIdReachedListeners = [];
|
let syncIdReachedListeners = [];
|
||||||
|
|
||||||
function waitForSyncId(desiredSyncId) {
|
function waitForSyncId(desiredSyncId) {
|
||||||
console.log("Waiting for ", desiredSyncId);
|
|
||||||
|
|
||||||
if (desiredSyncId <= lastSyncId) {
|
if (desiredSyncId <= lastSyncId) {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
@ -370,7 +370,7 @@ async function updateNote(noteId, noteUpdates) {
|
|||||||
note.isProtected = noteUpdates.isProtected;
|
note.isProtected = noteUpdates.isProtected;
|
||||||
await note.save();
|
await note.save();
|
||||||
|
|
||||||
if (!['file', 'image'].includes(note.type)) {
|
if (!['file', 'image', 'render'].includes(note.type)) {
|
||||||
noteUpdates.content = await saveLinks(note, noteUpdates.content);
|
noteUpdates.content = await saveLinks(note, noteUpdates.content);
|
||||||
|
|
||||||
await note.setContent(noteUpdates.content);
|
await note.setContent(noteUpdates.content);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user