How to set filter in listview of a doctype

console.log(‘File 1 is getting called’);
frappe.listview_settings[‘ToDo’] = {
add_fields: [“name”, “title”],
filters: [
[“status_category”, “!=”, “12”]
],
};

console.log(‘File 1 is getting called’); is working absolutely fine and its showing me in the console. I used that because I was trying to edit a core doctype.

Here status_category is a link field where the id 12 represents ‘Closed’.

I was trying to add a default filter in the list view where all todo’s where status_category is not ‘Closed’ should be visible.

this is not working in the filters at all.

I searched other topics in forum and they have shown similar codes to what I have written. Can anyone guide me where am I making mistake