fix export root note

This commit is contained in:
zadam 2020-09-19 22:47:14 +02:00
parent 07bd5129ca
commit 7ee50113d7
3 changed files with 8 additions and 3 deletions

View File

@ -276,6 +276,10 @@ class TreeCache {
}
async getBranchId(parentNoteId, childNoteId) {
if (childNoteId === 'root') {
return 'root';
}
const child = await this.getNote(childNoteId);
if (!child) {

View File

@ -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";

View File

@ -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.`);
}
}