Merge remote-tracking branch 'origin/math2'

# Conflicts:
#	package-lock.json
This commit is contained in:
zadam
2020-10-26 21:44:18 +01:00
6 changed files with 15 additions and 12 deletions

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

View File

@@ -181,7 +181,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
});
}
addTextToActiveEditorEvent(text) {
addTextToActiveEditorEvent({text}) {
if (!this.isActive()) {
return;
}