fix note preloading in tab loading

This commit is contained in:
zadam 2022-12-17 13:33:57 +01:00
parent 575f09d97f
commit 967919b400

View File

@ -57,8 +57,8 @@ export default class TabManager extends Component {
// preload all notes at once // preload all notes at once
await froca.getNotes([ await froca.getNotes([
tabsToOpen.map(tab => treeService.getNoteIdFromNotePath(tab.notePath)), ...tabsToOpen.map(tab => treeService.getNoteIdFromNotePath(tab.notePath)),
tabsToOpen.map(tab => tab.hoistedNoteId), ...tabsToOpen.map(tab => tab.hoistedNoteId),
], true); ], true);
for (const openTab of tabsToOpen) { for (const openTab of tabsToOpen) {