After deleting table row the current form field is not getting refresh

I have written the below code

frappe.ui.form.on(‘Outstanding’, {
items_remove: function(frm) {
cur_frm.refresh_fields();
}
});