From b5ba0a705ff0846bea15a734a7f19c6638935b91 Mon Sep 17 00:00:00 2001 From: Sangeetha Date: Wed, 24 Sep 2025 17:43:28 +0530 Subject: [PATCH] [WEB-4996] fix: accessing NoneType intake #7847 --- apps/api/plane/api/views/intake.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/plane/api/views/intake.py b/apps/api/plane/api/views/intake.py index 1ea9c73fd..6d82bd453 100644 --- a/apps/api/plane/api/views/intake.py +++ b/apps/api/plane/api/views/intake.py @@ -66,7 +66,7 @@ class IntakeIssueListCreateAPIEndpoint(BaseAPIView): workspace__slug=self.kwargs.get("slug"), pk=self.kwargs.get("project_id") ) - if intake is None and not project.intake_view: + if intake is None or not project.intake_view: return IntakeIssue.objects.none() return ( @@ -230,7 +230,7 @@ class IntakeIssueDetailAPIEndpoint(BaseAPIView): workspace__slug=self.kwargs.get("slug"), pk=self.kwargs.get("project_id") ) - if intake is None and not project.intake_view: + if intake is None or not project.intake_view: return IntakeIssue.objects.none() return (