From c8fc932c45d5f1ea8e3925ad3dcc482220e991fa Mon Sep 17 00:00:00 2001 From: 0x29a Date: Fri, 15 Jan 2021 15:15:08 +0100 Subject: [PATCH] Preserve js files order for discussions view Co-authored-by: Shimul Chowdhury --- lms/djangoapps/discussion/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/discussion/views.py b/lms/djangoapps/discussion/views.py index f28488e78a..36da39591d 100644 --- a/lms/djangoapps/discussion/views.py +++ b/lms/djangoapps/discussion/views.py @@ -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): """