diff --git a/frontend/src/components/WorkspaceSidebar/ProjectContextMenu.tsx b/frontend/src/components/WorkspaceSidebar/ProjectContextMenu.tsx index a8d95ce..45b9215 100644 --- a/frontend/src/components/WorkspaceSidebar/ProjectContextMenu.tsx +++ b/frontend/src/components/WorkspaceSidebar/ProjectContextMenu.tsx @@ -87,8 +87,7 @@ export default function ProjectContextMenu({ projectId, folderId, node, onRefetc }, { onSuccess: () => { - queryClient.invalidateQueries({ queryKey: ['folder', projectId, folderId] }); - queryClient.invalidateQueries({ queryKey: ['folder', projectId, node.id] }); + queryClient.invalidateQueries({ queryKey: ['folder'] }); onRefetch(); }, } @@ -102,7 +101,7 @@ export default function ProjectContextMenu({ projectId, folderId, node, onRefetc { projectId, folderId: node.id, memberId }, { onSuccess: () => { - queryClient.invalidateQueries({ queryKey: ['folder', projectId] }); + queryClient.invalidateQueries({ queryKey: ['folder'] }); onRefetch(); }, } @@ -112,8 +111,8 @@ export default function ProjectContextMenu({ projectId, folderId, node, onRefetc { projectId, folderId, imageId: node.id }, { onSuccess: () => { - queryClient.invalidateQueries({ queryKey: ['folder', projectId] }); - queryClient.invalidateQueries({ queryKey: ['image', node.id] }); + queryClient.invalidateQueries({ queryKey: ['folder'] }); + queryClient.invalidateQueries({ queryKey: ['image'] }); onRefetch(); }, } @@ -132,7 +131,7 @@ export default function ProjectContextMenu({ projectId, folderId, node, onRefetc { onSuccess: () => { console.log(folderId, node?.id); - queryClient.invalidateQueries({ queryKey: ['folder', projectId] }); + queryClient.invalidateQueries({ queryKey: ['folder'] }); onRefetch(); },