Skip to content

Commit

Permalink
fix: Clear project org search on close (#4690)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Oct 2, 2024
1 parent 6dc8b7b commit b4b48b7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions frontend/web/components/BreadcrumbSeparator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,17 @@ const BreadcrumbSeparator: FC<BreadcrumbSeparatorType> = ({
//eslint-disable-next-line
}, [])

useEffect(() => {
if(!open) {
if(projectSearch) {
setProjectSearch('')
}
if(organisationSearch) {
setOrganisationSearch('')
}
}
}, [open]);

const { data: projects } = useGetProjectsQuery(
{
organisationId: `${hoveredOrganisation?.id}`,
Expand Down

0 comments on commit b4b48b7

Please sign in to comment.