fix: fix gettings ENABLE_CATALOG_MICROFRONTEND FEATURE

This commit is contained in:
Serhii Nanai
2025-07-30 09:56:42 +03:00
parent f85c86e6bd
commit 18ec2a1517

View File

@@ -8,8 +8,8 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_
def use_catalog_mfe():
"""
Determine if Catalog MFE is enabled, replacing student_dashboard
Returns a boolean = true if the Catalog MFE is enabled.
"""
return configuration_helpers.get_value(
'ENABLE_CATALOG_MICROFRONTEND', settings.FEATURES['ENABLE_CATALOG_MICROFRONTEND']
'ENABLE_CATALOG_MICROFRONTEND', settings.FEATURES.get('ENABLE_CATALOG_MICROFRONTEND')
)