Unable to filter asset in the asset movement item table

        frm.set_query("asset", "assets", () => {
            const currentUser = frappe.session.user;
            const userLocation = frappe.get_doc('User', currentUser).location;
            const filters = {
                status: ["not in", ["Draft"]],
                location: userLocation,
            };

using this code,

asset field is not showing anything in the Asset Movement Doctype,

if code is incorrect, please help me out

Thanks and Regards,
Shubham

Try the following code.

frm.set_query("asset", "assets", () => {
	const currentUser = frappe.session.user;
	const userLocation = frappe.get_doc('User', currentUser).location;
	return  {
		filters : {
			status: ["not in", ["Draft"]],
			location: userLocation,
		}
	}
});