mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 23:28:25 +00:00
feat: added test
This commit is contained in:
@@ -258,9 +258,9 @@ export const useUpdateFolderBatch = () => {
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
return useMutation<object, object, TUpdateFolderBatchDTO>({
|
||||
mutationFn: async ({ projectSlug, folders }) => {
|
||||
mutationFn: async ({ projectId, folders }) => {
|
||||
const { data } = await apiRequest.patch("/api/v2/folders/batch", {
|
||||
projectSlug,
|
||||
projectId,
|
||||
folders
|
||||
});
|
||||
|
||||
|
||||
@@ -450,9 +450,8 @@ export const OverviewPage = () => {
|
||||
|
||||
try {
|
||||
await updateFolderBatch({
|
||||
projectSlug,
|
||||
folders: updatedFolders,
|
||||
projectId: projectId
|
||||
projectId
|
||||
});
|
||||
createNotification({
|
||||
type: "success",
|
||||
|
||||
Reference in New Issue
Block a user