Commit e118e7f
committed
refactor(course-overview): simplify activeRepository getter
Replace complex filtering chain with direct sorting of userRepositories.
This improves code readability and performance by avoiding multiple
filterBy calls and creating fewer intermediate arrays. The change keeps
the logic to return the most recent repository based on lastSubmissionAt.1 parent f7ef756 commit e118e7f
1 file changed
+1
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 13 | + | |
25 | 14 | | |
26 | 15 | | |
27 | 16 | | |
| |||
0 commit comments