Skip to content

Commit

Permalink
fix(ui/browse): hide data products option in left side bar (datahub-p…
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav2733 authored Mar 7, 2024
1 parent e963047 commit 7d10547
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions datahub-web-react/src/app/search/sidebar/BrowseSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ const BrowseSidebar = ({ visible }: Props) => {
</SidebarHeader>
<SidebarBody visible={visible}>
{entityAggregations && !entityAggregations.length && <div>No results found</div>}
{entityAggregations?.map((entityAggregation) => (
<BrowseProvider key={entityAggregation.value} entityAggregation={entityAggregation}>
<EntityNode />
</BrowseProvider>
))}
{entityAggregations
?.filter((entityAggregation) => entityAggregation?.value !== 'DATA_PRODUCT')
?.map((entityAggregation) => (
<BrowseProvider key={entityAggregation?.value} entityAggregation={entityAggregation}>
<EntityNode />
</BrowseProvider>
))}
{error && <SidebarLoadingError onClickRetry={retry} />}
</SidebarBody>
</SidebarWrapper>
Expand Down

0 comments on commit 7d10547

Please sign in to comment.