summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web_src/js/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index cd353b15f2..8f2de67db0 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -2118,6 +2118,7 @@ function initCodeView() {
});
$(document).on('click', '.blob-excerpt', async ({currentTarget}) => {
const {url, query, anchor} = currentTarget.dataset;
+ if (!url) return;
const blob = await $.get(`${url}?${query}&anchor=${anchor}`);
currentTarget.closest('tr').outerHTML = blob;
});