From e547106d66a46759978ddcd902e6c7350a0f4b53 Mon Sep 17 00:00:00 2001 From: Federico Rodriguez Date: Fri, 1 Dec 2023 16:49:27 +0100 Subject: [PATCH] Fix HOC implementation --- .../syscollector/components/network-interfaces-table.tsx | 2 +- .../agents/syscollector/components/with-so-platform-guard.tsx | 2 +- .../main/public/components/agents/syscollector/inventory.tsx | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/main/public/components/agents/syscollector/components/network-interfaces-table.tsx b/plugins/main/public/components/agents/syscollector/components/network-interfaces-table.tsx index 157084061c..b7bb9c6a34 100644 --- a/plugins/main/public/components/agents/syscollector/components/network-interfaces-table.tsx +++ b/plugins/main/public/components/agents/syscollector/components/network-interfaces-table.tsx @@ -10,7 +10,7 @@ const sortFieldSuggestion = (a, b) => (a.label > b.label ? 1 : -1); export const NetworkInterfacesTable = ({ agent }) => { return ( - + props => { ); } - return WrappedComponent; + return ; }; diff --git a/plugins/main/public/components/agents/syscollector/inventory.tsx b/plugins/main/public/components/agents/syscollector/inventory.tsx index 232dd1589a..e1b13f138e 100644 --- a/plugins/main/public/components/agents/syscollector/inventory.tsx +++ b/plugins/main/public/components/agents/syscollector/inventory.tsx @@ -25,7 +25,7 @@ import { ProcessesTable, PackagesTable, } from './components'; -import 'inventory.scss'; +import './inventory.scss'; export const SyscollectorInventory = compose( withGuard( @@ -47,6 +47,7 @@ export const SyscollectorInventory = compose( } else if (agent?.os?.uname?.toLowerCase().includes('sunos')) { soPlatform = 'solaris'; } + soPlatform = undefined; return (