mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 08:47:19 +00:00
Fix profile loading spinner
This commit is contained in:
parent
93d2d56cce
commit
fa4fe57a86
|
@ -232,7 +232,7 @@ export class Profile extends Component<
|
||||||
async fetchUserData() {
|
async fetchUserData() {
|
||||||
const { page, sort, view } = getProfileQueryParams();
|
const { page, sort, view } = getProfileQueryParams();
|
||||||
|
|
||||||
this.setState({ personRes: { state: "empty" } });
|
this.setState({ personRes: { state: "loading" } });
|
||||||
this.setState({
|
this.setState({
|
||||||
personRes: await HttpService.client.getPersonDetails({
|
personRes: await HttpService.client.getPersonDetails({
|
||||||
username: this.props.match.params.username,
|
username: this.props.match.params.username,
|
||||||
|
|
Loading…
Reference in a new issue