mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
detect existing attachment in target note
This commit is contained in:
@@ -297,7 +297,7 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget {
|
||||
else if ($attr.attr("data-attribute-type") === "relation") {
|
||||
const selectedPath = $attr.getSelectedNotePath();
|
||||
|
||||
value = selectedPath ? treeService.getNoteIdFromNotePath(selectedPath) : "";
|
||||
value = selectedPath ? treeService.getNoteIdFromUrl(selectedPath) : "";
|
||||
}
|
||||
else {
|
||||
value = $attr.val();
|
||||
|
||||
Reference in New Issue
Block a user