mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix adding relation noteId as value, closes #1329
This commit is contained in:
parent
7f5af4b959
commit
9f424836e2
@ -283,7 +283,9 @@ export default class AttributeDetailWidget extends TabAwareWidget {
|
||||
return false;
|
||||
}
|
||||
|
||||
this.attribute.value = suggestion.notePath;
|
||||
const pathChunks = suggestion.notePath.split('/');
|
||||
|
||||
this.attribute.value = pathChunks[pathChunks.length - 1]; // noteId
|
||||
|
||||
this.triggerCommand('updateAttributeList', { attributes: this.allAttributes });
|
||||
this.updateRelatedNotes();
|
||||
|
Loading…
x
Reference in New Issue
Block a user