mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Excluded URLs was not displayed correctly.
This commit is contained in:
parent
54bc870b70
commit
7a784d7c45
2 changed files with 5 additions and 5 deletions
|
|
@ -579,7 +579,7 @@ export async function putDownload(
|
|||
frequency: frequency || null,
|
||||
settings: settings,
|
||||
};
|
||||
const response = await apiPut(`${API_URI}/download`, body);
|
||||
const response = await apiPut(`${API_URI}/download/${download_id}`, body);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ export function DownloadEditForm({afterSave, closeModal, download}) {
|
|||
const [state, setState] = React.useState({
|
||||
url: download.url || '',
|
||||
frequency: download.frequency,
|
||||
excluded_urls: download.excluded_urls || '',
|
||||
excluded_urls: download.settings ? download.settings.excluded_urls : '',
|
||||
})
|
||||
const [disabled, setDisabled] = React.useState(useWROLMode());
|
||||
const [loading, setLoading] = React.useState(false);
|
||||
|
|
@ -147,12 +147,12 @@ export function DownloadEditForm({afterSave, closeModal, download}) {
|
|||
if (!response.ok) {
|
||||
throw 'Updating download failed';
|
||||
}
|
||||
} finally {
|
||||
setLoading(false);
|
||||
setDisabled(false);
|
||||
if (afterSave) {
|
||||
afterSave();
|
||||
}
|
||||
} finally {
|
||||
setLoading(false);
|
||||
setDisabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue