Fix failed page progress

This commit is contained in:
2023-07-22 22:07:36 +08:00
parent ea41cb0081
commit 4a7bcc7388
2 changed files with 1 additions and 1 deletions

View File

@@ -57,7 +57,6 @@ export default class Task extends Component<Props, State> {
if (!(this.props.flags & map_taskstatus(task.status))) {
return <div data-id={task.base.id}></div>;
}
console.log(task);
let error_div = null;
if (task.status === TaskStatus.Failed) {
error_div = (

View File

@@ -364,6 +364,7 @@ export async function download_task(
const errors: unknown[] = [];
function try_download(a: number) {
if (a >= max_retry_count) {
m.remove_details(i.index);
reject(errors);
}
download().then(resolve).catch((e) => {