From ad9aa0eaa154f661f23c05abe3157122be963cd6 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Thu, 28 Aug 2025 10:51:15 +0700 Subject: [PATCH 1/2] Fix policy header actions (#38233) --- .../interfaces/Auth/Policies/PolicyTableRow/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx index d4eda61843332..47f460e55273e 100644 --- a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx +++ b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx @@ -143,7 +143,7 @@ export const PolicyTableRow = ({ Name Command Applied to - + Actions From ba23f2f032302d9333b2ec92b18a439afffe130f Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Thu, 28 Aug 2025 11:09:37 +0700 Subject: [PATCH 2/2] Fix restart DB TS error (#38256) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix restart DB TS error * Update apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx Co-authored-by: Paweł Gulbinowicz --------- Co-authored-by: Paweł Gulbinowicz --- apps/studio/data/projects/projects-query.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/apps/studio/data/projects/projects-query.ts b/apps/studio/data/projects/projects-query.ts index b25c705bd3fab..36157a6b9d3b5 100644 --- a/apps/studio/data/projects/projects-query.ts +++ b/apps/studio/data/projects/projects-query.ts @@ -81,17 +81,20 @@ export function setProjectStatus( projectRef: Project['ref'], status: Project['status'] ) { - client.setQueriesData( + client.setQueriesData( projectKeys.list(), (old) => { if (!old) return old - return old.map((project) => { - if (project.ref === projectRef) { - return { ...project, status } - } - return project - }) + return { + ...old, + projects: old.projects.map((project) => { + if (project.ref === projectRef) { + return { ...project, status } + } + return project + }), + } }, { updatedAt: Date.now() } )