How to override static js file

In edx-platform “edx-platform/lms/static/js/discovery/views/course_card.js” there is a code:

return Backbone.View.extend({

            tagName: 'li',
            templateId: '#course_card-tpl',
            className: 'courses-listing-item',
            
            ...
        });

I want to override this code, so I created a new file in the path “my-theme/ lms/static/js/discovery/views/course_card.js. But there is no changes.

How could I override the static js file?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.