Skip to content

Commit c6200ab

Browse files
committed
fix: handle undefined theme cookie name for lms settingss
1 parent 48d8afb commit c6200ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tutorindigo/plugin.py

+4
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,17 @@ def _override_openedx_docker_image(
196196
if filename in PIPELINE['JAVASCRIPT']:
197197
PIPELINE['JAVASCRIPT'][filename]['source_filenames'] += dark_theme_filepath
198198
199+
{% if INDIGO_THEME_COOKIE_NAME %}
199200
MFE_CONFIG['THEME_COOKIE_NAME'] = '{{ INDIGO_THEME_COOKIE_NAME }}'
201+
{% endif %}
200202
""",
201203
),
202204
(
203205
"openedx-lms-production-settings",
204206
"""
207+
{% if INDIGO_THEME_COOKIE_NAME %}
205208
MFE_CONFIG['THEME_COOKIE_NAME'] = '{{ INDIGO_THEME_COOKIE_NAME }}'
209+
{% endif %}
206210
""",
207211
),
208212
]

0 commit comments

Comments
 (0)