forked from github/plane
dev: update sort order calculation
This commit is contained in:
parent
adfb35e50d
commit
056656ef1b
@ -823,9 +823,14 @@ class ProjectJoinEndpoint(BaseAPIView):
|
|||||||
)
|
)
|
||||||
.aggregate(smallest=Min("sort_order"))
|
.aggregate(smallest=Min("sort_order"))
|
||||||
.get("smallest", 65535)
|
.get("smallest", 65535)
|
||||||
- 10000
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if smallest_sort_order is None:
|
||||||
|
smallest_sort_order = 55535
|
||||||
|
else:
|
||||||
|
smallest_sort_order = smallest_sort_order - 10000
|
||||||
|
|
||||||
|
|
||||||
workspace_role = workspace_member.role
|
workspace_role = workspace_member.role
|
||||||
workspace = workspace_member.workspace
|
workspace = workspace_member.workspace
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user