From 1dfa23b049b79e574adfc4356475448cc84e98dd Mon Sep 17 00:00:00 2001 From: Geoffrey Booth <456802+GeoffreyBooth@users.noreply.github.com> Date: Tue, 2 Aug 2022 09:23:31 -0700 Subject: [PATCH] Fix #5421, docs code snippets not running (#5422) --- docs/v2/index.html | 4 ++-- documentation/site/docs.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/v2/index.html b/docs/v2/index.html index fb6e6de212..2fe23daac4 100644 --- a/docs/v2/index.html +++ b/docs/v2/index.html @@ -6672,11 +6672,11 @@

diff --git a/documentation/site/docs.coffee b/documentation/site/docs.coffee index 242bc66460..4a7f17e038 100644 --- a/documentation/site/docs.coffee +++ b/documentation/site/docs.coffee @@ -156,7 +156,7 @@ $(document).ready -> $('[data-action="run-code-example"]').click -> run = $(@).data 'run' index = $("##{$(@).data('example')}-js").data 'index' - js = if editors[index]? + js = if editors[index]?.js editors[index].js else $(textareas[index]).val()