chore: project preferences (#1669)

This commit is contained in:
Nikhil 2023-07-31 10:42:00 +05:30 committed by GitHub
parent 8e0124be91
commit ed75163ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -844,11 +844,13 @@ class ProjectUserViewsEndpoint(BaseAPIView):
view_props = project_member.view_props
default_props = project_member.default_props
preferences = project_member.preferences
project_member.view_props = request.data.get("view_props", view_props)
project_member.default_props = request.data.get(
"default_props", default_props
)
project_member.preferences = request.data.get("preferences", preferences)
project_member.save()