Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: inbox issue (#4765)

Anmol Singh Bhatiacb292b010fad
diff --git a/apiserver/plane/utils/paginator.py b/apiserver/plane/utils/paginator.py
index 42038b3847..97149fb11b 100644
--- a/apiserver/plane/utils/paginator.py
+++ b/apiserver/plane/utils/paginator.py
@@ -112,7 +112,7 @@ class OffsetPaginator:
else (order_by[1::] if order_by.startswith("-") else order_by,)
)
# Set desc to true when `-` exists in the order by
- self.desc = True if order_by.startswith("-") else False
+ self.desc = True if order_by and order_by.startswith("-") else False
self.queryset = queryset
self.max_limit = max_limit
self.max_offset = max_offset