mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Fetching downloads after delete.
This commit is contained in:
parent
cafd7ccdc0
commit
759169dd63
1 changed files with 4 additions and 1 deletions
|
|
@ -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>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue