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
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() }
)