From bfa8a799eb60e3fda8519879dbdecc8976a3446c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=98=84=EC=A1=B0?= Date: Tue, 8 Oct 2024 13:44:49 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=EC=BF=BC=EB=A6=AC=20=EC=B4=88=EA=B8=B0?= =?UTF-8?q?=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/WorkspaceSidebar/ProjectContextMenu.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/WorkspaceSidebar/ProjectContextMenu.tsx b/frontend/src/components/WorkspaceSidebar/ProjectContextMenu.tsx index 403f75f..97b468c 100644 --- a/frontend/src/components/WorkspaceSidebar/ProjectContextMenu.tsx +++ b/frontend/src/components/WorkspaceSidebar/ProjectContextMenu.tsx @@ -102,8 +102,7 @@ export default function ProjectContextMenu({ projectId, folderId, node, onRefetc { projectId, folderId: node.id, memberId }, { onSuccess: () => { - queryClient.invalidateQueries({ queryKey: ['folder', projectId, folderId] }); - queryClient.invalidateQueries({ queryKey: ['folder', projectId, node.id] }); + queryClient.invalidateQueries({ queryKey: ['folder', projectId] }); onRefetch(); }, } @@ -113,7 +112,7 @@ export default function ProjectContextMenu({ projectId, folderId, node, onRefetc { projectId, folderId, imageId: node.id }, { onSuccess: () => { - queryClient.invalidateQueries({ queryKey: ['folder', projectId, folderId] }); + queryClient.invalidateQueries({ queryKey: ['folder', projectId] }); queryClient.invalidateQueries({ queryKey: ['image', node.id] }); onRefetch(); }, @@ -133,8 +132,7 @@ export default function ProjectContextMenu({ projectId, folderId, node, onRefetc { onSuccess: () => { console.log(folderId, node?.id); - queryClient.invalidateQueries({ queryKey: ['folder', projectId, folderId] }); - queryClient.invalidateQueries({ queryKey: ['folder', projectId, node?.id] }); + queryClient.invalidateQueries({ queryKey: ['folder', projectId] }); onRefetch(); },