Fetching downloads after delete.

This commit is contained in:
Roland 2022-11-13 14:36:13 -07:00
parent cafd7ccdc0
commit 759169dd63
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -115,6 +115,9 @@ class DownloadRow extends React.Component {
await deleteDownload(id);
} finally {
this.closeDelete();
if (this.props.fetchDownloads) {
this.props.fetchDownloads();
}
}
}
@ -367,7 +370,7 @@ export function Downloads() {
recurringTable = <Table>
{nonStoppableHeader}
<TableBody>
{recurringDownloads.map((i) => <DownloadRow key={i.id} {...i}/>)}
{recurringDownloads.map((i) => <DownloadRow key={i.id} fetchDownloads={fetchDownloads} {...i}/>)}
</TableBody>
</Table>;
}