From 8cd35c4678786d87091eaa936574f70a53c306a8 Mon Sep 17 00:00:00 2001 From: Sylvie Crowe <107814465+oneirocosm@users.noreply.github.com> Date: Fri, 31 Jan 2025 16:37:23 -0800 Subject: [PATCH] fix: frontend file delete add recursive false (#1892) There was a recent backend change that update the interface to FileDeleteCommand. This updated was not reflected in directorypreview.tsx on the frontend. This updates the frontend to match. --- frontend/app/view/preview/directorypreview.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/app/view/preview/directorypreview.tsx b/frontend/app/view/preview/directorypreview.tsx index 9b951e40c..7bdc275dd 100644 --- a/frontend/app/view/preview/directorypreview.tsx +++ b/frontend/app/view/preview/directorypreview.tsx @@ -639,9 +639,8 @@ function TableBody({ click: () => { fireAndForget(async () => { await RpcApi.FileDeleteCommand(TabRpcClient, { - info: { - path: await model.formatRemoteUri(finfo.path, globalStore.get), - }, + path: await model.formatRemoteUri(finfo.path, globalStore.get), + recursive: false, }).catch((e) => console.log(e)); setRefreshVersion((current) => current + 1); });