mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-25 14:35:48 +03:00
Pull request: 3312: set search input from query params
Closes #3312.
Squashed commit of the following:
commit b3070b623b6539b98922897042d3bd19ce15bf9c
Merge: 74e683da d1de47b6
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Fri Aug 27 19:34:08 2021 +0300
Merge branch 'master' into 3312-search-input
commit 74e683da9f8a01f9e16cfc519c9b3106796712d1
Author: Ildar Kamalov <ik@adguard.com>
Date: Fri Aug 27 18:25:28 2021 +0300
client: set search input from query params
This commit is contained in:
parent
d1de47b636
commit
595441603f
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ const Logs = () => {
|
||||||
const filter = useSelector((state) => state.queryLogs.filter, shallowEqual);
|
const filter = useSelector((state) => state.queryLogs.filter, shallowEqual);
|
||||||
const logs = useSelector((state) => state.queryLogs.logs, shallowEqual);
|
const logs = useSelector((state) => state.queryLogs.logs, shallowEqual);
|
||||||
|
|
||||||
const search = filter?.search || search_url_param || '';
|
const search = search_url_param || filter?.search || '';
|
||||||
const response_status = filter?.response_status || response_status_url_param || '';
|
const response_status = response_status_url_param || filter?.response_status || '';
|
||||||
|
|
||||||
const [isSmallScreen, setIsSmallScreen] = useState(window.innerWidth < SMALL_SCREEN_SIZE);
|
const [isSmallScreen, setIsSmallScreen] = useState(window.innerWidth < SMALL_SCREEN_SIZE);
|
||||||
const [detailedDataCurrent, setDetailedDataCurrent] = useState({});
|
const [detailedDataCurrent, setDetailedDataCurrent] = useState({});
|
||||||
|
|
Loading…
Reference in a new issue