aboutsummaryrefslogtreecommitdiff
path: root/web_src/js/features/repo-commit.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/repo-commit.js')
-rw-r--r--web_src/js/features/repo-commit.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/web_src/js/features/repo-commit.js b/web_src/js/features/repo-commit.js
index a911c1739..94fca7a9c 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 <tr> rows in response (eg: <tr class="has-parent">)
+ // at the moment only the "data-entryname" rows should be processed
+ const entryName = $(row).attr('data-entryname');
+ if (entryName) {
+ entryMap[entryName].replaceWith(row);
+ }
});
});
}