mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
client: Fix rendering notes if hljs is not loaded
This commit is contained in:
@@ -371,7 +371,8 @@ class NoteListRenderer {
|
||||
$content.append($renderedContent);
|
||||
$content.addClass(`type-${type}`);
|
||||
} catch (e) {
|
||||
console.log(`Caught error while rendering note '${note.noteId}' of type '${note.type}': ${e.message}, stack: ${e.stack}`);
|
||||
console.warn(`Caught error while rendering note '${note.noteId}' of type '${note.type}'`);
|
||||
console.error(e);
|
||||
|
||||
$content.append("rendering error");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user