Skip to content

Commit

Permalink
perf(inbox): improve inbox sidebar loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
soyombo-baterdene committed Aug 8, 2023
1 parent ea57be8 commit 0cb0eae
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -65,9 +65,9 @@ export default class FilterList extends React.PureComponent<Props, State> {
query: gql(queries[queryName]),
variables
})
.then(({ data }: any) => {
.then(({ data, loading }: any) => {
if (this.mounted) {
this.setState({ fields: data[dataName] });
this.setState({ fields: data[dataName], loading });
}
})
.catch(e => {
Expand Down

0 comments on commit 0cb0eae

Please sign in to comment.