Add mutationKey everywhere

This commit is contained in:
Gregory Schier
2024-06-21 09:25:25 -07:00
parent 50e2ab3a03
commit cd9e720835
44 changed files with 67 additions and 26 deletions

View File

@@ -14,6 +14,7 @@ export function useCreateFolder() {
const prompt = usePrompt();
return useMutation<Folder, unknown, Partial<Pick<Folder, 'name' | 'sortPriority' | 'folderId'>>>({
mutationKey: ['create_folder'],
mutationFn: async (patch) => {
if (workspaceId === null) {
throw new Error("Cannot create folder when there's no active workspace");