Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-24 03:07:14 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-24 03:07:14 +0300
commitc4e4f0d16733caba766d9c1ae3b4b9a3f0bfb0ca (patch)
tree6008465efc7b0ef017dd04afeddcfd23ee84999c /app/assets/javascripts/syntax_highlight.js
parent08a284ca5e259f685b32ae255e42c7307891aed1 (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.js2
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) => {