mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Depth and max_pages must be integers.
This commit is contained in:
parent
6f43f1daa0
commit
9bb0ec6472
1 changed files with 3 additions and 0 deletions
|
|
@ -453,6 +453,8 @@ class RecursiveDownload extends Downloader {
|
|||
|
||||
submitDownload = async () => {
|
||||
let {urls, destination, depth, suffix, max_pages} = this.state;
|
||||
depth = parseInt(depth);
|
||||
max_pages = parseInt(max_pages);
|
||||
if (urls) {
|
||||
this.setState({pending: true, submitted: false});
|
||||
try {
|
||||
|
|
@ -537,6 +539,7 @@ class RecursiveDownload extends Downloader {
|
|||
name='depth'
|
||||
options={depths}
|
||||
value={depth}
|
||||
type="number"
|
||||
onChange={this.handleInputChange}
|
||||
/>
|
||||
</SForm.Field>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue