diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-24 03:07:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-24 03:07:14 +0300 |
commit | c4e4f0d16733caba766d9c1ae3b4b9a3f0bfb0ca (patch) | |
tree | 6008465efc7b0ef017dd04afeddcfd23ee84999c /app/assets/javascripts/syntax_highlight.js | |
parent | 08a284ca5e259f685b32ae255e42c7307891aed1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/syntax_highlight.js')
-rw-r--r-- | app/assets/javascripts/syntax_highlight.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/syntax_highlight.js b/app/assets/javascripts/syntax_highlight.js index 96b6e78c668..cb2bf24abc7 100644 --- a/app/assets/javascripts/syntax_highlight.js +++ b/app/assets/javascripts/syntax_highlight.js @@ -11,7 +11,7 @@ // export default function syntaxHighlight($els = null) { - if (!$els) return; + if (!$els || $els.length === 0) return; const els = $els.get ? $els.get() : $els; const handler = (el) => { |