From 3ef56bd4d88a4f340ede23dfffaeb4aa0487ad9a Mon Sep 17 00:00:00 2001 From: alongw Date: Sat, 27 Jan 2024 19:43:23 +0800 Subject: [PATCH] Fix: files in subfolders not downloading properly --- frontend/src/hooks/useFileManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/hooks/useFileManager.ts b/frontend/src/hooks/useFileManager.ts index fa3c4b64..087cb413 100644 --- a/frontend/src/hooks/useFileManager.ts +++ b/frontend/src/hooks/useFileManager.ts @@ -387,7 +387,7 @@ export const useFileManager = (instanceId?: string, daemonId?: string) => { try { await getDownloadCfg({ params: { - file_name: fileName, + file_name: breadcrumbs[breadcrumbs.length - 1].path + fileName, daemonId: daemonId!, uuid: instanceId! }