diff --git a/frontend_tests/node_tests/settings_profile_fields.js b/frontend_tests/node_tests/settings_profile_fields.js index 650045a2f3..7f39d6fd6c 100644 --- a/frontend_tests/node_tests/settings_profile_fields.js +++ b/frontend_tests/node_tests/settings_profile_fields.js @@ -31,7 +31,7 @@ page_params.custom_profile_field_types = { }; rewiremock.proxy(() => zrequire("settings_profile_fields"), { - sortablejs: {create: () => {}}, + sortablejs: {default: {create: () => {}}}, }); function test_populate(opts) { diff --git a/static/js/settings_profile_fields.js b/static/js/settings_profile_fields.js index beafee767b..fed6f2004d 100644 --- a/static/js/settings_profile_fields.js +++ b/static/js/settings_profile_fields.js @@ -1,4 +1,4 @@ -const Sortable = require("sortablejs"); +const Sortable = require("sortablejs").default; const render_admin_profile_field_list = require("../templates/admin_profile_field_list.hbs"); const render_settings_profile_field_choice = require("../templates/settings/profile_field_choice.hbs");