Preserve js files order for discussions view

Co-authored-by: Shimul Chowdhury <shimul@opencraft.com>
This commit is contained in:
0x29a
2021-01-15 15:15:08 +01:00
parent e01c07775c
commit c8fc932c45

View File

@@ -789,7 +789,7 @@ class DiscussionBoardFragmentView(EdxFragmentView):
works in conjunction with the Django pipeline to ensure that in development mode
the files are loaded individually, but in production just the single bundle is loaded.
"""
return list(set(self.get_js_dependencies('discussion_vendor')))
return list(dict.fromkeys(self.get_js_dependencies('discussion_vendor')))
def js_dependencies(self):
"""