Merge pull request #1780 from m-gail/fix-profile-loading-spinner

Fix profile loading spinner
This commit is contained in:
SleeplessOne1917 2023-07-03 14:15:22 +00:00 committed by GitHub
commit 43869824bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,7 +232,7 @@ export class Profile extends Component<
async fetchUserData() {
const { page, sort, view } = getProfileQueryParams();
this.setState({ personRes: { state: "empty" } });
this.setState({ personRes: { state: "loading" } });
this.setState({
personRes: await HttpService.client.getPersonDetails({
username: this.props.match.params.username,