[SOLVED] Query error requesting wrong values

let address = props.contracts[0].get("govAddress");
    console.log(address);
    setAddress(address);
    const Proposals = Moralis.Object.extend("Proposals");
    const query = new Moralis.Query(Proposals);
    query.equalTo("govAddress", address);
    const results = await query.find();

I ran the code above and everything works till the line for query and I get the error

uncaught (in promise) Error: This contract object doesn't have address set yet, please set an address first.

I don’t know why but the filed in database “govAddress” contains the address I am supplying the query

wait it comes from let proposal = await Moralis.executeFunction(options);

Solved do not worry, thanks