diff --git a/ui/component/claimListHeader/view.jsx b/ui/component/claimListHeader/view.jsx index 24c3dfadd..d6f2280a1 100644 --- a/ui/component/claimListHeader/view.jsx +++ b/ui/component/claimListHeader/view.jsx @@ -106,6 +106,13 @@ function ClaimListHeader(props: Props) { // eslint-disable-next-line react-hooks/exhaustive-deps }, []); + React.useEffect(() => { + if (hideAdvancedFilter) { + setExpanded(false); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); + let orderParam = orderBy || urlParams.get(CS.ORDER_BY_KEY) || defaultOrderBy; if (!orderParam) { if (action === 'POP') {