fix: intake toggle (#6111)
This commit is contained in:
parent
378e896bf0
commit
41c0ba502c
2 changed files with 2 additions and 6 deletions
|
|
@ -258,9 +258,7 @@ class ProjectAPIEndpoint(BaseAPIView):
|
|||
ProjectSerializer(project).data, cls=DjangoJSONEncoder
|
||||
)
|
||||
|
||||
intake_view = request.data.get(
|
||||
"inbox_view", request.data.get("intake_view", False)
|
||||
)
|
||||
intake_view = request.data.get("inbox_view", project.intake_view)
|
||||
|
||||
if project.archived_at:
|
||||
return Response(
|
||||
|
|
|
|||
|
|
@ -384,11 +384,9 @@ class ProjectViewSet(BaseViewSet):
|
|||
)
|
||||
|
||||
workspace = Workspace.objects.get(slug=slug)
|
||||
intake_view = request.data.get(
|
||||
"inbox_view", request.data.get("intake_view", False)
|
||||
)
|
||||
|
||||
project = Project.objects.get(pk=pk)
|
||||
intake_view = request.data.get("inbox_view", project.intake_view)
|
||||
current_instance = json.dumps(
|
||||
ProjectSerializer(project).data, cls=DjangoJSONEncoder
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue