fix render note attributes

This commit is contained in:
zadam
2019-05-19 10:30:00 +02:00
parent 722380e7b8
commit f3e7e6bbe7
4 changed files with 3 additions and 9 deletions

View File

@@ -81,10 +81,6 @@ async function saveNotesIfChanged() {
/** @type {TabContext[]} */
let tabContexts = [];
function getActiveComponent() {
return getActiveTabContext().getComponent();
}
function getActiveEditor() {
const activeTabContext = getActiveTabContext();
@@ -496,7 +492,6 @@ export default {
getActiveEditor,
isActive,
activateTabContext,
getActiveComponent,
clearOpenTabsTask,
filterTabs
};

View File

@@ -18,7 +18,7 @@ class NoteDetailRender {
}
async render() {
const attributes = await attributeService.getAttributes();
const attributes = await this.ctx.attributes.getAttributes();
const renderNotes = attributes.filter(attr =>
attr.type === 'relation'
&& attr.name === 'renderNote'