Fix mutation of commit listing in place
The commit listing on each patch revision started to be flaky when using
browser navigation. It seems like the Array.sort() call started to
reverse the order of the commit listing back to HEAD on top which isnβt
what we wanted.
Array.toReversed() returns a fresh copy of the reversed array which is
less error prone.
π Preview π Workflow runs π Branch on GitHub
3 files changed
+31
-2
2b058a10
β
846daf0b
modified src/views/repos/Cob/Revision.svelte
@@ -437,7 +437,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/e2e/repo/patch.spec.ts
@@ -117,3 +117,32 @@ test("view file navigation from changes tab", async ({ page }) => {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified tsconfig.json
@@ -4,7 +4,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|