Pull request: client: fix query log response status error
Closes #3089 Squashed commit of the following: commit c5f3112298b11a73b77a35ea249f24abed221425 Author: Ildar Kamalov <ik@adguard.com> Date: Tue May 18 16:08:56 2021 +0300 client: fix query log response status error
This commit is contained in:
@@ -63,8 +63,8 @@ const Logs = () => {
|
||||
const history = useHistory();
|
||||
|
||||
const {
|
||||
response_status: response_status_url_param = '',
|
||||
search: search_url_param = '',
|
||||
response_status: response_status_url_param,
|
||||
search: search_url_param,
|
||||
} = queryString.parse(history.location.search);
|
||||
|
||||
const {
|
||||
@@ -76,8 +76,8 @@ const Logs = () => {
|
||||
const filter = useSelector((state) => state.queryLogs.filter, shallowEqual);
|
||||
const logs = useSelector((state) => state.queryLogs.logs, shallowEqual);
|
||||
|
||||
const search = filter?.search || search_url_param;
|
||||
const response_status = filter?.response_status || response_status_url_param;
|
||||
const search = filter?.search || search_url_param || '';
|
||||
const response_status = filter?.response_status || response_status_url_param || '';
|
||||
|
||||
const [isSmallScreen, setIsSmallScreen] = useState(window.innerWidth < SMALL_SCREEN_SIZE);
|
||||
const [detailedDataCurrent, setDetailedDataCurrent] = useState({});
|
||||
|
||||
Reference in New Issue
Block a user