Skip to content

Commit

Permalink
fix(ESSNTL-5490): Pass HybridInventory props down to tabs (RedHatInsi…
Browse files Browse the repository at this point in the history
  • Loading branch information
mkholjuraev authored Oct 10, 2023
1 parent a3a59aa commit 5a79be8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/InventoryTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const SuspenseWrapper = ({ children }) => (
const Inventory = (props) => {
const { search } = useLocation();
const searchParams = useMemo(() => getSearchParams(), [search.toString()]);
const fullProps = { ...props, ...searchParams };
return (
<React.Fragment>
<PageHeader className="pf-m-light">
Expand All @@ -42,12 +43,12 @@ const Inventory = (props) => {
<HybridInventoryTabs
ConventionalSystemsTab={
<SuspenseWrapper>
<ConventionalSystemsTab {...searchParams} />
<ConventionalSystemsTab {...fullProps} />
</SuspenseWrapper>
}
ImmutableDevicesTab={
<SuspenseWrapper>
<ImmutableDevicesTab />
<ImmutableDevicesTab {...fullProps} />
</SuspenseWrapper>
}
isImmutableTabOpen={props.isImmutableTabOpen}
Expand Down

0 comments on commit 5a79be8

Please sign in to comment.