From 85e6bf54c97aec6af1bd3dfad3ed1bc6a39ee3ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20=F0=9F=90=A7=20Lobanov?= Date: Thu, 20 Mar 2025 13:57:31 +0300 Subject: [PATCH] Pull request 2375: ADG-9850 query-log-search-form-fix Updates #7704. Squashed commit of the following: commit 16ef53ea6bb687139bc62ffee0a8b87fee676f1c Author: Ainar Garipov Date: Thu Mar 20 13:24:48 2025 +0300 all: upd chlog commit d0c0935f30683841aaa79ffc149fe5e31938724b Author: Igor Lobanov Date: Wed Mar 19 19:02:13 2025 +0100 fixed query log search form --- CHANGELOG.md | 6 ++++++ client/src/components/Logs/Filters/Form.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89557c4a..8fff397f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,12 @@ See also the [v0.107.59 GitHub milestone][ms-v0.107.59]. NOTE: Add new changes BELOW THIS COMMENT. --> +### Fixed + +- The search form not working in the query log ([#7704]). + +[#7704]: https://github.com/AdguardTeam/AdGuardHome/issues/7704 + diff --git a/client/src/components/Logs/Filters/Form.tsx b/client/src/components/Logs/Filters/Form.tsx index e1119920..98ff98f4 100644 --- a/client/src/components/Logs/Filters/Form.tsx +++ b/client/src/components/Logs/Filters/Form.tsx @@ -62,7 +62,7 @@ export const Form = ({ className, setIsLoading }: Props) => { if (searchUrlParam !== searchValue) { setValue('search', searchUrlParam ? searchUrlParam.toString() : ''); } - }, [history.location.search, setValue, searchValue]); + }, [history.location.search]); const onInputClear = async () => { setIsLoading(true);