deleting without reloading the whole tree (at least on frontend)

This commit is contained in:
zadam
2019-03-18 23:03:41 +01:00
parent ca0d17d93a
commit 0267468cd5
5 changed files with 32 additions and 20 deletions

View File

@@ -6,11 +6,7 @@ import treeCache from "./tree_cache.js";
import messagingService from "./messaging.js";
import hoistedNoteService from "./hoisted_note.js";
async function prepareTree(noteRows, branchRows, relations) {
utils.assertArguments(noteRows, branchRows, relations);
treeCache.load(noteRows, branchRows, relations);
async function prepareTree() {
const hoistedNoteId = await hoistedNoteService.getHoistedNoteId();
let hoistedBranch;