Skip to content

Commit

Permalink
chore: updated instance validation in cycle write serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
gurusainath committed Jan 9, 2025
1 parent 070aec6 commit 41f947e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apiserver/plane/app/serializers/cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def validate(self, data):
and data.get("end_date", None) is not None
):
project_id = (
self.initial_data.get("project_id")
or self.instance.project_id
or self.context.get("project_id")
self.initial_data.get("project_id", None)
or (self.instance and self.instance.get("project_id", None))
or self.context.get("project_id", None)
)
is_start_date_end_date_equal = (
True
Expand Down

0 comments on commit 41f947e

Please sign in to comment.