We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a5e43 commit 0f92b89Copy full SHA for 0f92b89
source/views/student-orgs/list.js
@@ -91,7 +91,9 @@ export class StudentOrgsView extends React.Component {
91
}
92
93
componentWillMount() {
94
- this.fetchData()
+ this.fetchData().then(() => {
95
+ this.setState(() => ({loading: false}))
96
+ })
97
98
99
fetchData = async () => {
@@ -116,7 +118,7 @@ export class StudentOrgsView extends React.Component {
116
118
117
119
const sorted = sortBy(withSortableNames, '$sortableName')
120
const grouped = groupBy(sorted, '$groupableName')
- this.setState(() => ({orgs: sorted, results: grouped, loading: false}))
121
+ this.setState(() => ({orgs: sorted, results: grouped}))
122
123
124
refresh = async () => {
0 commit comments