Depth and max_pages must be integers.

This commit is contained in:
Roland 2023-08-30 20:24:33 -06:00
parent 6f43f1daa0
commit 9bb0ec6472
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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>