From 877b4fec7e53e8cab671cc0a55935fb167fa99d1 Mon Sep 17 00:00:00 2001 From: Ida Date: Wed, 6 May 2026 08:40:33 +0200 Subject: [PATCH] fix: when moving folders the targetParentId was always missing, resulting in the folder not being moved --- .../FormGeneratorTree/providers/FolderFileProvider.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/FormGenerator/FormGeneratorTree/providers/FolderFileProvider.tsx b/src/components/FormGenerator/FormGeneratorTree/providers/FolderFileProvider.tsx index 7e8b6f7..268b862 100644 --- a/src/components/FormGenerator/FormGeneratorTree/providers/FolderFileProvider.tsx +++ b/src/components/FormGenerator/FormGeneratorTree/providers/FolderFileProvider.tsx @@ -161,7 +161,9 @@ export function createFolderFileProvider(): TreeNodeProvider { await Promise.all( ids.map((id) => { if (_isFile(id)) return api.put(`/api/files/${id}`, { folderId: targetParentId }); - return api.post(`/api/files/folders/${id}/move`, { targetParentId }); + return api.post(`/api/files/folders/${id}/move`, { + parentId: targetParentId, + }); }), ); },