fix adding relation noteId as value, closes #1329

This commit is contained in:
zadam 2020-10-26 16:05:34 +01:00
parent 7f5af4b959
commit 9f424836e2

View File

@ -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();