From b8713faf76212ed1c774286dd58a8c07b8a306aa Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Tue, 15 Aug 2023 11:42:47 -0700 Subject: [PATCH] fix: error on course outline in Studio due to browser caching old JS file (#33015) This fixes a bug where some users would see an error that prevented the course outline page in Studio from loading, for any course. --- cms/templates/js/course-outline.underscore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/templates/js/course-outline.underscore b/cms/templates/js/course-outline.underscore index 4c49c363f6..fa3d562196 100644 --- a/cms/templates/js/course-outline.underscore +++ b/cms/templates/js/course-outline.underscore @@ -169,7 +169,7 @@ if (is_proctored_exam) { <% } %> - <% if (enableCopyPasteUnits) { %> + <% if (typeof enableCopyPasteUnits !== "undefined" && enableCopyPasteUnits) { %>