diff --git a/apiserver/plane/app/views/page/base.py b/apiserver/plane/app/views/page/base.py index 3682d486c..9db2a4cf0 100644 --- a/apiserver/plane/app/views/page/base.py +++ b/apiserver/plane/app/views/page/base.py @@ -327,7 +327,7 @@ class PageViewSet(BaseViewSet): # remove parent from all the children _ = Page.objects.filter( - parent_id=pk, project_id=project_id, workspace__slug=slug + parent_id=pk, projects__id=project_id, workspace__slug=slug ).update(parent=None) page.delete()