web: fix title of locked note not saving

This commit is contained in:
Abdullah Atta
2024-03-14 12:42:48 +05:00
parent f5ac0b93f6
commit 533bef014d

View File

@@ -667,7 +667,7 @@ class EditorStore extends BaseStore<EditorStore> {
? currentSession.sessionId
: `${Date.now()}`;
if (isLockedSession(currentSession)) {
if (isLockedSession(currentSession) && partial.content) {
await db.vault.save({
content: partial.content,
sessionId,