fix: resolve 404 on delete, reload UI properly for trash actions
All checks were successful
Automated Container Build / build-and-push (push) Successful in 39s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 39s
This commit is contained in:
parent
854da9a50d
commit
9807ad6fe5
2 changed files with 17 additions and 5 deletions
|
|
@ -202,8 +202,8 @@ class ApiClient {
|
|||
}
|
||||
|
||||
async deleteFile(path: string, permanent: boolean = false) {
|
||||
const query = permanent ? '&permanent=true' : '';
|
||||
const res = await this.request(`/api/files/?path=${encodeURIComponent(path)}${query}`, {
|
||||
const query = permanent ? '?permanent=true' : '';
|
||||
const res = await this.request(`/api/files/${encodeURIComponent(path)}${query}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
return res.json();
|
||||
|
|
|
|||
Reference in a new issue