Document Filter should close automatically when navigating to another menu from Project Profile page
This commit is contained in:
parent
9ef1e39041
commit
5f2a567600
@ -19,6 +19,12 @@ const DocumentFilterPanel = forwardRef(
|
|||||||
const { data, isError, isLoading, error } =
|
const { data, isError, isLoading, error } =
|
||||||
useDocumentFilterEntities(entityTypeId);
|
useDocumentFilterEntities(entityTypeId);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
return () => {
|
||||||
|
closePanel();
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
//changes
|
//changes
|
||||||
|
|
||||||
const dynamicDocumentFilterDefaultValues = useMemo(() => {
|
const dynamicDocumentFilterDefaultValues = useMemo(() => {
|
||||||
@ -237,6 +243,6 @@ const DocumentFilterPanel = forwardRef(
|
|||||||
</form>
|
</form>
|
||||||
</FormProvider>
|
</FormProvider>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
export default DocumentFilterPanel;
|
export default DocumentFilterPanel;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user