mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fixed switching between note clones
This commit is contained in:
parent
664a87cdd5
commit
550bb77ca9
@ -42,6 +42,9 @@ const link = (function() {
|
||||
e.preventDefault();
|
||||
|
||||
const linkEl = $(e.target);
|
||||
let notePath = linkEl.attr("note-path");
|
||||
|
||||
if (!notePath) {
|
||||
const address = linkEl.attr("note-path") ? linkEl.attr("note-path") : linkEl.attr('href');
|
||||
|
||||
if (!address) {
|
||||
@ -54,7 +57,8 @@ const link = (function() {
|
||||
return;
|
||||
}
|
||||
|
||||
const notePath = getNotePathFromLink(address);
|
||||
notePath = getNotePathFromLink(address);
|
||||
}
|
||||
|
||||
noteTree.activateNode(notePath);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user