Skip to content

Commit

Permalink
Fix HOC implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
asteriscos committed Dec 1, 2023
1 parent 620611d commit e547106
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const sortFieldSuggestion = (a, b) => (a.label > b.label ? 1 : -1);

export const NetworkInterfacesTable = ({ agent }) => {
return (
<EuiPanel paddingSize='m' style={{ margin: '12px 16px 12px 16px' }}>
<EuiPanel paddingSize='m' className='wz-agent-inventory-panel'>
<TableWzAPI
title='Network interfaces'
tableColumns={netifaceColumns}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export const withSOPlatformGuard = WrappedComponent => props => {
</EuiPanel>
);
}
return WrappedComponent;
return <WrappedComponent {...props} />;
};
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
ProcessesTable,
PackagesTable,
} from './components';
import 'inventory.scss';
import './inventory.scss';

export const SyscollectorInventory = compose(
withGuard(
Expand All @@ -47,6 +47,7 @@ export const SyscollectorInventory = compose(
} else if (agent?.os?.uname?.toLowerCase().includes('sunos')) {
soPlatform = 'solaris';
}
soPlatform = undefined;

return (
<div style={{ overflow: 'hidden' }}>
Expand Down

0 comments on commit e547106

Please sign in to comment.