diff --git a/web_src/js/index.js b/web_src/js/index.js index cd353b15f2a..8f2de67db0c 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; });