jurteam / platform

Jur Beta Platform
https://beta.jur.io
0 stars 0 forks source link

FIX API calls for updating a bio #299

Closed tyagishuchi1 closed 4 years ago

tyagishuchi1 commented 4 years ago

While updating a bio the behavior of the API calls is erratic. It throws 500/404 error randomly. Sometimes the payload is shown as empty, even when bio text is given and the bio gets updated.

Expected Behavior

The API call should show the details suitably without throwing 500/404. image

Current Behavior

It is probably making multiple API calls at a time. The first API must be correctly updating the data. The other might be throwing errors.

Possible Solution

Steps to Reproduce

Environment: Temp

  1. Add a bio in the advocate's page
  2. Update it

Context (Environment)

Detailed Description

Possible Implementation

MirelXhafa commented 4 years ago

The problem is in the main component that refreshes when a state is changed and so a new request is made but canceled directly and the api calls work and are done correctly. I do not know why you have decided to refresh the main component when a state changes. The response comes empty from backend

tyagishuchi1 commented 4 years ago

@ashishjur Please provide relevant info for the comment

The problem is in the main component that refreshes when a state is changed and so a new request is made but canceled directly and the api calls work and are done correctly. I do not know why you have decided to refresh the main component when a state changes. The response comes empty from backend