fix relations in attributes
This commit is contained in:
@@ -263,7 +263,7 @@ async function loadAttributes() {
|
||||
$attributeListInner.append(utils.formatLabel(attribute) + " ");
|
||||
}
|
||||
else if (attribute.type === 'relation') {
|
||||
$attributeListInner.append(attribute.name + " = ");
|
||||
$attributeListInner.append(attribute.name + "=");
|
||||
$attributeListInner.append(await linkService.createNoteLink(attribute.value));
|
||||
$attributeListInner.append(" ");
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ import utils from "./utils.js";
|
||||
import Branch from "../entities/branch.js";
|
||||
import NoteShort from "../entities/note_short.js";
|
||||
import infoService from "./info.js";
|
||||
import messagingService from "./messaging.js";
|
||||
import server from "./server.js";
|
||||
|
||||
class TreeCache {
|
||||
@@ -48,7 +49,9 @@ class TreeCache {
|
||||
|
||||
return noteIds.map(noteId => {
|
||||
if (!this.notes[noteId]) {
|
||||
throw new Error(`Can't find note ${noteId}`);
|
||||
messagingService.logError(`Can't find note ${noteId}`);
|
||||
|
||||
return `[unknown ${noteId}]`;
|
||||
}
|
||||
else {
|
||||
return this.notes[noteId];
|
||||
|
||||
Reference in New Issue
Block a user