You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constid,params,payload;axios.put(`/vendors/${id}`,{ ...payload, id },{ params });// won't workaxios.put(`/vendors/${id}`,payload,{params: { ...params, id }});// works, of course BE is RoR so values can be passed in body or query param
Find a fix.
The text was updated successfully, but these errors were encountered:
Not an axios issue. Payload should either be string (JSON.stringify) or FormData, can't be a mix. Axios accepts objects, but again, if FormData is involved, make sure it's passed as is as second param
Find a fix.
The text was updated successfully, but these errors were encountered: