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.
This commit is contained in:
Sylvie Crowe 2025-01-31 16:37:23 -08:00 committed by GitHub
parent 750e260174
commit 8cd35c4678
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -639,9 +639,8 @@ function TableBody({
click: () => {
fireAndForget(async () => {
await RpcApi.FileDeleteCommand(TabRpcClient, {
info: {
path: await model.formatRemoteUri(finfo.path, globalStore.get),
},
recursive: false,
}).catch((e) => console.log(e));
setRefreshVersion((current) => current + 1);
});