mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-02 02:50:00 -06:00
fallback to display empty tab if the requested note doesn't exist anymore
This commit is contained in:
@@ -232,6 +232,12 @@ async function loadNoteDetail(origNotePath, options = {}) {
|
||||
|
||||
if (!notePath) {
|
||||
console.error(`Cannot resolve note path ${origNotePath}`);
|
||||
|
||||
// fallback to display something
|
||||
if (tabContexts.length === 0) {
|
||||
await openEmptyTab();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user