mirror of
https://github.com/zadam/trilium.git
synced 2024-09-20 15:45:58 +08: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…
Reference in a new issue