Document Filter should close automatically when navigating to another menu from Project Profile page

This commit is contained in:
Kartik Sharma 2025-11-07 12:51:28 +05:30
parent 9ef1e39041
commit 5f2a567600

View File

@ -19,6 +19,12 @@ const DocumentFilterPanel = forwardRef(
const { data, isError, isLoading, error } =
useDocumentFilterEntities(entityTypeId);
useEffect(() => {
return () => {
closePanel();
};
}, []);
//changes
const dynamicDocumentFilterDefaultValues = useMemo(() => {
@ -237,6 +243,6 @@ const DocumentFilterPanel = forwardRef(
</form>
</FormProvider>
);
});
});
export default DocumentFilterPanel;