mirror of
https://github.com/modrinth/code.git
synced 2026-08-28 10:34:53 +00:00
fix: users projects shifting around while in queue (#6452)
fix: users projects shifting around while in queue due to download count changes
This commit is contained in:
@@ -211,7 +211,7 @@
|
||||
: (projects ?? [])
|
||||
)
|
||||
.slice()
|
||||
.sort((a, b) => b.downloads - a.downloads)"
|
||||
.sort(projectUserSorting)"
|
||||
:key="project.id"
|
||||
>
|
||||
<ProjectCard
|
||||
@@ -327,6 +327,7 @@ import {
|
||||
provideOrganizationContext,
|
||||
} from '~/providers/organization-context.ts'
|
||||
import { isPermission } from '~/utils/permissions.ts'
|
||||
import { projectUserSorting } from '~/utils/projects.ts'
|
||||
|
||||
type ProjectV3 = Labrinth.Projects.v3.Project & {
|
||||
client_side: 'required' | 'optional' | 'unsupported'
|
||||
|
||||
Reference in New Issue
Block a user