Skip to content

Commit 38cdbfc

Browse files
committed
Download page bugfix
1 parent c894b79 commit 38cdbfc

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

frontend/src/Manage/Download/Download.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,17 @@ export const Download = () => {
307307
getDevices()
308308
}, [getDevices])
309309
useEffect(() => {
310-
submitSearch(
311-
new Event('submit') as unknown as React.FormEvent<HTMLFormElement>
312-
)
310+
if (
311+
!(
312+
searchParams.has(PATTERN) ||
313+
searchParams.has(SEARCH_CATEGORY) ||
314+
searchParams.has(SEARCH_WHERE)
315+
)
316+
) {
317+
submitSearch(
318+
new Event('submit') as unknown as React.FormEvent<HTMLFormElement>
319+
)
320+
}
313321
}, []) // eslint-disable-line react-hooks/exhaustive-deps
314322

315323
return (

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "CDMServer"
3-
version = "2.13.0"
3+
version = "2.14.0"
44
description = "A short description of your project"
55
authors = [{name = "Aron Radics", email = "radics.aron.jozsef@gmail.com"}]
66
requires-python = ">=3.13"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)