diff --git a/apiserver/plane/app/serializers/cycle.py b/apiserver/plane/app/serializers/cycle.py index 53ce8bf27db..efc0f8f8b2d 100644 --- a/apiserver/plane/app/serializers/cycle.py +++ b/apiserver/plane/app/serializers/cycle.py @@ -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