From 2cf40cf16b3951e9a6a42ffa1f9d8dd56189089c Mon Sep 17 00:00:00 2001 From: Usama Date: Wed, 12 Nov 2025 07:38:12 +0000 Subject: [PATCH] make report updatable even when not published --- echo/frontend/src/components/report/hooks/index.ts | 3 --- echo/frontend/src/routes/project/report/ProjectReportRoute.tsx | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/echo/frontend/src/components/report/hooks/index.ts b/echo/frontend/src/components/report/hooks/index.ts index 54c943bf..9cbbf751 100644 --- a/echo/frontend/src/components/report/hooks/index.ts +++ b/echo/frontend/src/components/report/hooks/index.ts @@ -208,9 +208,6 @@ export const useDoesProjectReportNeedUpdate = (projectReportId: number) => { id: { _eq: projectReportId, }, - status: { - _eq: "published", - }, }, limit: 1, sort: "-date_created", diff --git a/echo/frontend/src/routes/project/report/ProjectReportRoute.tsx b/echo/frontend/src/routes/project/report/ProjectReportRoute.tsx index a3dc86ad..82f77644 100644 --- a/echo/frontend/src/routes/project/report/ProjectReportRoute.tsx +++ b/echo/frontend/src/routes/project/report/ProjectReportRoute.tsx @@ -167,11 +167,10 @@ export const ProjectReportRoute = () => { + {data.status === "published" && ( - - {