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.

[WEB-4996] fix: accessing NoneType intake #7847

Sangeethab5ba0a705ff0
diff --git a/apps/api/plane/api/views/intake.py b/apps/api/plane/api/views/intake.py
index 1ea9c73fda..6d82bd4536 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 (