Skip to content

Commit 5b974d0

Browse files
committed
fix(move-file-mutation): fix invalidation of cache when moving a file
1 parent 077cede commit 5b974d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/api/useMoveProjectObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const useMoveProjectObject = (
5858
const promises = [
5959
queryClient.invalidateQueries({ queryKey: getGetProjectQueryKey(projectId) }),
6060
queryClient.invalidateQueries({
61-
queryKey: getGetFilesQueryKey({ project_id: projectId, path: getPathStem(srcPath) }),
61+
queryKey: getGetFilesQueryKey({ project_id: projectId, path: srcPath }),
6262
}),
6363
];
6464
if (dstPath) {

0 commit comments

Comments
 (0)