fixed moving multiple folders list

This commit is contained in:
subnub
2024-10-19 00:59:37 -04:00
parent 7137be2cbc
commit fad81f319c
7 changed files with 38 additions and 21 deletions
+8 -3
View File
@@ -41,15 +41,20 @@ export const getMoveFolderListAPI = async ({
}: QueryFunctionContext<
[
string,
{ parent: string; search: string; folderID?: string; currentParent: string }
{
parent: string;
search: string;
folderIDs?: string[];
currentParent: string;
}
]
>) => {
const [_key, { parent, search, folderID, currentParent }] = queryKey;
const [_key, { parent, search, folderIDs, currentParent }] = queryKey;
const response = await axios.get(`/folder-service/move-folder-list`, {
params: {
parent,
search,
folderID,
folderIDs,
currentParent,
},
});