When document filter is now auto closed at we are go to next tab or component.
This commit is contained in:
parent
096a4acfff
commit
523ef6775f
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user