diff --git a/src/public/app/services/note_content_renderer.js b/src/public/app/services/note_content_renderer.js
index 749047a4b..b315e88bf 100644
--- a/src/public/app/services/note_content_renderer.js
+++ b/src/public/app/services/note_content_renderer.js
@@ -33,26 +33,7 @@ async function getRenderedContent(note, options = {}) {
}
}
else {
- $renderedContent.css("padding", "10px");
- $renderedContent.addClass("text-with-ellipsis");
-
- let childNoteIds = note.getChildNoteIds();
-
- if (childNoteIds.length > 10) {
- childNoteIds = childNoteIds.slice(0, 10);
- }
-
- // just load the first 10 child notes
- const childNotes = await froca.getNotes(childNoteIds);
-
- for (const childNote of childNotes) {
- $renderedContent.append(await linkService.createNoteLink(`${note.noteId}/${childNote.noteId}`, {
- showTooltip: false,
- showNoteIcon: true
- }));
-
- $renderedContent.append("
");
- }
+ await renderChildrenList($renderedContent, note);
}
}
else if (type === 'code') {
@@ -164,6 +145,9 @@ async function getRenderedContent(note, options = {}) {
$renderedContent.append($("