import doesn't need a full tree reload

This commit is contained in:
zadam 2019-03-31 19:13:17 +02:00
parent f00e1235f9
commit c6806256fd
2 changed files with 1 additions and 6 deletions

View file

@ -115,11 +115,6 @@ $("body").on("click", "a.external", function () {
if (utils.isElectron()) {
require('electron').ipcRenderer.on('create-day-sub-note', async function(event, parentNoteId) {
// this might occur when day note had to be created
if (!await treeCache.getNote(parentNoteId)) {
await treeService.reload();
}
await treeService.activateNote(parentNoteId);
setTimeout(async () => {

View file

@ -98,7 +98,7 @@ async function uploadFiles(importNoteId, files, options) {
infoService.showMessage("Import finished successfully.");
await treeService.reload();
await treeService.reloadNote(importNoteId);
if (noteId) {
const node = await treeService.activateNote(noteId);