mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
fix note activation right after creation from calendar
This commit is contained in:
@@ -18,6 +18,8 @@ async function getTodayNote() {
|
|||||||
async function getDateNote(date) {
|
async function getDateNote(date) {
|
||||||
const note = await server.get('date-notes/date/' + date, "date-note");
|
const note = await server.get('date-notes/date/' + date, "date-note");
|
||||||
|
|
||||||
|
await ws.waitForMaxKnownEntityChangeId();
|
||||||
|
|
||||||
return await treeCache.getNote(note.noteId);
|
return await treeCache.getNote(note.noteId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,6 +27,8 @@ async function getDateNote(date) {
|
|||||||
async function getMonthNote(month) {
|
async function getMonthNote(month) {
|
||||||
const note = await server.get('date-notes/month/' + month, "date-note");
|
const note = await server.get('date-notes/month/' + month, "date-note");
|
||||||
|
|
||||||
|
await ws.waitForMaxKnownEntityChangeId();
|
||||||
|
|
||||||
return await treeCache.getNote(note.noteId);
|
return await treeCache.getNote(note.noteId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,6 +36,8 @@ async function getMonthNote(month) {
|
|||||||
async function getYearNote(year) {
|
async function getYearNote(year) {
|
||||||
const note = await server.get('date-notes/year/' + year, "date-note");
|
const note = await server.get('date-notes/year/' + year, "date-note");
|
||||||
|
|
||||||
|
await ws.waitForMaxKnownEntityChangeId();
|
||||||
|
|
||||||
return await treeCache.getNote(note.noteId);
|
return await treeCache.getNote(note.noteId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,6 +45,8 @@ async function getYearNote(year) {
|
|||||||
async function createSqlConsole() {
|
async function createSqlConsole() {
|
||||||
const note = await server.post('sql-console');
|
const note = await server.post('sql-console');
|
||||||
|
|
||||||
|
await ws.waitForMaxKnownEntityChangeId();
|
||||||
|
|
||||||
return await treeCache.getNote(note.noteId);
|
return await treeCache.getNote(note.noteId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user