From cb292b010fadbb5a6390a5123fc3e4c7d700a5e8 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Tue, 11 Jun 2024 17:32:52 +0530 Subject: [PATCH] fix: inbox issue (#4765) --- apiserver/plane/utils/paginator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/plane/utils/paginator.py b/apiserver/plane/utils/paginator.py index 42038b384..97149fb11 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