diff --git a/web_src/js/features/repo-commit.js b/web_src/js/features/repo-commit.js index a911c173929a..94fca7a9c203 100644 --- a/web_src/js/features/repo-commit.js +++ b/web_src/js/features/repo-commit.js @@ -45,7 +45,12 @@ export function initRepoCommitLastCommitLoader() { $('table#repo-files-table .commit-list').replaceWith(row); return; } - entryMap[$(row).attr('data-entryname')].replaceWith(row); + // there are other rows in response (eg: ) + // at the moment only the "data-entryname" rows should be processed + const entryName = $(row).attr('data-entryname'); + if (entryName) { + entryMap[entryName].replaceWith(row); + } }); }); }