mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
refactored tab activation
This commit is contained in:
@@ -113,7 +113,7 @@ async function loadNoteDetail(origNotePath, options = {}) {
|
||||
|
||||
const loadPromise = loadNoteDetailToContext(ctx, notePath).then(() => {
|
||||
if (activate) {
|
||||
return appContext.activateTab(ctx);
|
||||
return appContext.activateTab(ctx.tabId);
|
||||
}
|
||||
else {
|
||||
return Promise.resolve();
|
||||
|
||||
Reference in New Issue
Block a user