Skip to content

Commit

Permalink
fix: frontend file delete add recursive false (#1892)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
oneirocosm authored Feb 1, 2025
1 parent 750e260 commit 8cd35c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/app/view/preview/directorypreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 8cd35c4

Please sign in to comment.