diff --git a/src/public/app/dialogs/recent_changes.js b/src/public/app/dialogs/recent_changes.js index d008fce35..a53520702 100644 --- a/src/public/app/dialogs/recent_changes.js +++ b/src/public/app/dialogs/recent_changes.js @@ -16,18 +16,18 @@ export async function showDialog(ancestorNoteId) { ancestorNoteId = hoistedNoteService.getHoistedNoteId(); } - const result = await server.get('recent-changes/' + ancestorNoteId); + const recentChangesRows = await server.get('recent-changes/' + ancestorNoteId); // preload all notes into cache - await treeCache.getNotes(result.map(r => r.noteId), true); + await treeCache.getNotes(recentChangesRows.map(r => r.noteId), true); $content.empty(); - if (result.length === 0) { + if (recentChangesRows.length === 0) { $content.append("No changes yet ..."); } - const groupedByDate = groupByDate(result); + const groupedByDate = groupByDate(recentChangesRows); for (const [dateDay, dayChanges] of groupedByDate) { const $changesList = $('