useModalForm appends [object Object] onto my endpoint
So I'm trying to pop up an "Edit User" modal on my web app when the user clicks on their avatar in the top right. The only issue is that I'm relying on useModalForm() to make an API call, but it is continuously appending
So here's the call from the
The top line's
This is the URL the front end tries to call as a result:
Here's how I'm calling that
[object Object] to my endpoint.So here's the call from the
useModalForm():The top line's
console.log returns this:This is the URL the front end tries to call as a result:
GET https://3sagmc8ygj.execute-api.us-east-2.amazonaws.com/staging/api/users/some-tenant/some-org/[object%20Object]Here's how I'm calling that
modalForm: