From 9bb0ec6472f822cff1f25f5736c9d4fd43eeb5e6 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 30 Aug 2023 20:24:33 -0600 Subject: [PATCH] Depth and max_pages must be integers. --- app/src/components/Download.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/components/Download.js b/app/src/components/Download.js index 94655c7e..d4967c8f 100644 --- a/app/src/components/Download.js +++ b/app/src/components/Download.js @@ -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} />