I'm trying to request some data from the server. When I change a property's model to undefined this "undefined" string is sent in the query string.
let filterModel = new GroupFilterModel();
filterModel.status = anycondition ? "opened" : undefined;
this.http.get<GroupModel[]>("apiurl", { params: filterModel });
The querystring sent is something like this:
apiurl?status=undefined
I want to avoid sending the status variable. How can I have this behaviour?