diff --git a/static/js/settings_org.js b/static/js/settings_org.js index 546f33cc84..b0dbfe0911 100644 --- a/static/js/settings_org.js +++ b/static/js/settings_org.js @@ -461,7 +461,7 @@ exports.get_input_element_value = function (input_elem) { return parseInt(input_elem.val().trim(), 10); } } - return null; + return; }; exports.set_up = function () { @@ -750,7 +750,7 @@ exports.build_page = function () { input_elem = $(input_elem); if (check_property_changed(input_elem)) { const input_value = exports.get_input_element_value(input_elem); - if (input_value !== null) { + if (input_value !== undefined) { const property_name = input_elem.attr('id').replace("id_realm_", ""); data[property_name] = JSON.stringify(input_value); }