Commit ae6e45c
committed
Fetch only students in ProjectEditor
Commit c6546c7 ("Fetch users in project editor") overzealously fetched
all users when this component was mounted; whilst this resulted in the
correct behaviour, each user fetched results in a network request, so
it's ideal to keep the number of users requested as low as possible.
This is achieved by only asking the backend for users who can actually
join a project.1 parent 7652ee8 commit ae6e45c
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
249 | | - | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
0 commit comments