mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-29 16:48:31 -06:00
fix render note attributes
This commit is contained in:
@@ -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
|
||||
};
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user