mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
more refactoring ...
This commit is contained in:
@@ -209,11 +209,6 @@ async function setExpandedToServer(branchId, isExpanded) {
|
||||
await server.put('branches/' + branchId + '/expanded/' + expandedNum);
|
||||
}
|
||||
|
||||
/** @return {FancytreeNode[]} */
|
||||
function getSelectedNodes(stopOnParents = false) {
|
||||
return tree.getSelectedNodes(stopOnParents);
|
||||
}
|
||||
|
||||
async function treeInitialized() {
|
||||
if (appContext.getTabContexts().length > 0) {
|
||||
// this is just tree reload - tabs are already in place
|
||||
@@ -276,6 +271,8 @@ async function treeInitialized() {
|
||||
filteredTabs[0].active = true;
|
||||
}
|
||||
|
||||
console.log("filteredTabs", filteredTabs);
|
||||
|
||||
for (const tab of filteredTabs) {
|
||||
await noteDetailService.loadNoteDetail(tab.notePath, {
|
||||
state: tab,
|
||||
|
||||
Reference in New Issue
Block a user