mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
dev: fix the issues check
This commit is contained in:
parent
7a0a12f164
commit
27cc4c8f9b
@ -90,7 +90,7 @@ class IssueListEndpoint(BaseAPIView):
|
|||||||
def post(self, request, slug, project_id):
|
def post(self, request, slug, project_id):
|
||||||
issues = request.data.get("issues", [])
|
issues = request.data.get("issues", [])
|
||||||
|
|
||||||
if issues:
|
if not issues:
|
||||||
return Response(
|
return Response(
|
||||||
{"error": "Issues are required"},
|
{"error": "Issues are required"},
|
||||||
status=status.HTTP_400_BAD_REQUEST,
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
|
Loading…
Reference in New Issue
Block a user