fix relations in attributes

This commit is contained in:
azivner
2018-08-06 11:30:37 +02:00
parent a55d3530e9
commit 49989695ff
3 changed files with 12 additions and 7 deletions

View File

@@ -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];