fix: remove drag and drop from V1 libs (#32325)

This commit is contained in:
connorhaugh
2023-05-30 11:25:59 -04:00
committed by GitHub
parent 1b50e80437
commit b8de097e1a

View File

@@ -306,8 +306,8 @@ def get_component_templates(courselike, library=False): # lint-amnesty, pylint:
# by the components in the order listed in COMPONENT_TYPES.
component_types = COMPONENT_TYPES[:]
# Libraries do not support discussions and openassessment and other libraries
component_not_supported_by_library = ['discussion', 'library', 'openassessment']
# Libraries do not support discussions, drag-and-drop, and openassessment and other libraries
component_not_supported_by_library = ['discussion', 'library', 'openassessment', 'drag-and-drop-v2']
if library:
component_types = [component for component in component_types
if component not in set(component_not_supported_by_library)]