mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-05 16:37:09 +00:00
fix(control): remove second delete request
This commit is contained in:
@@ -117,7 +117,6 @@ export async function delete_files(ip: string, current_path: string, file_names:
|
||||
for (const file_name of file_names) {
|
||||
command += ` && rm -r "${file_name}"`;
|
||||
}
|
||||
await run_shell_command(ip, command);
|
||||
const raw_response = await run_shell_command(ip, command);
|
||||
if (!raw_response.ok || !raw_response.json) return;
|
||||
const json_response = raw_response.json as ShellCommandResponse;
|
||||
|
||||
@@ -290,7 +290,7 @@ export async function run_for_selected_files_on_selected_displays(action: (ip: s
|
||||
if (selected_file_names_on_display.length === 0) continue;
|
||||
|
||||
const display = get_display_by_id(display_id, get(displays));
|
||||
if (!display) continue
|
||||
if (!display) continue;
|
||||
|
||||
await action(display.ip, selected_file_names_on_display);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user