mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix export root note
This commit is contained in:
parent
07bd5129ca
commit
7ee50113d7
@ -276,6 +276,10 @@ class TreeCache {
|
||||
}
|
||||
|
||||
async getBranchId(parentNoteId, childNoteId) {
|
||||
if (childNoteId === 'root') {
|
||||
return 'root';
|
||||
}
|
||||
|
||||
const child = await this.getNote(childNoteId);
|
||||
|
||||
if (!child) {
|
||||
|
@ -3,7 +3,6 @@ import treeCache from "./tree_cache.js";
|
||||
import hoistedNoteService from './hoisted_note.js';
|
||||
import clipboard from './clipboard.js';
|
||||
import protectedSessionHolder from "./protected_session_holder.js";
|
||||
import appContext from "./app_context.js";
|
||||
import noteCreateService from "./note_create.js";
|
||||
import contextMenu from "./context_menu.js";
|
||||
|
||||
|
@ -150,7 +150,7 @@ async function consumeSyncData() {
|
||||
const nonProcessedSyncRows = allSyncRows.filter(sync => !processedEntityChangeIds.has(sync.id));
|
||||
|
||||
try {
|
||||
await utils.timeLimit(processSyncRows(nonProcessedSyncRows), 5000);
|
||||
await utils.timeLimit(processSyncRows(nonProcessedSyncRows), 15000);
|
||||
}
|
||||
catch (e) {
|
||||
logError(`Encountered error ${e.message}: ${e.stack}, reloading frontend.`);
|
||||
@ -161,7 +161,9 @@ async function consumeSyncData() {
|
||||
utils.reloadApp();
|
||||
}
|
||||
else {
|
||||
alert("Encountered error, check out the console.");
|
||||
console.log("nonProcessedSyncRows causing the timeout", nonProcessedSyncRows);
|
||||
|
||||
alert(`Encountered error "${e.message}", check out the console.`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user